-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yaml
85 lines (77 loc) · 1.7 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
volumes:
hazardsets:
postgresql_data:
services:
db:
image: camptocamp/thinkhazard-testdb
volumes:
- postgresql_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${PGPASSWORD_PUBLIC}
POSTGRES_DB: ${PGDATABASE_PUBLIC}
POSTGRES_USER: ${PGUSER_PUBLIC}
thinkhazard:
image: camptocamp/thinkhazard
user: www-data
restart: unless-stopped
depends_on:
- db
volumes:
- hazardsets:/tmp/hazardsets
environment: &env
- INI_FILE
- TX_TOKEN
- PGHOST
- PGPORT
- PGUSER_PUBLIC
- PGPASSWORD_PUBLIC
- PGDATABASE_PUBLIC
- PGUSER_ADMIN
- PGPASSWORD_ADMIN
- PGDATABASE_ADMIN
- AWS_ENDPOINT_URL
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_BUCKET_NAME
- GEONODE_URL
- GEONODE_USERNAME
- GEONODE_API_KEY
- ANALYTICS
- BROKER_URL
- HTPASSWORDS
ports:
- 8080:8080
taskrunner:
image: camptocamp/thinkhazard
user: www-data
restart: unless-stopped
depends_on:
- db
volumes:
- hazardsets:/tmp/hazardsets
environment: *env
command: 'celery -A thinkhazard.celery worker -l info'
minio:
image: minio/minio
ports:
- "9000:9000"
command: 'minio server /data'
redis:
image: redis
ports:
- "6379:6379"
minio-client:
image: minio/mc
depends_on:
- minio
volumes:
- ./docker/minio-client/docker-entrypoint:/docker-entrypoint
environment:
- AWS_HOST=minio
- AWS_PORT=9000
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_BUCKET_NAME
entrypoint: /docker-entrypoint
command: ["exit", "0"]