forked from vundalon/iaso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (82 loc) · 2.09 KB
/
docker-compose.yml
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"
services:
iaso:
stdin_open: true
tty: true
build:
context: .
image: iaso
ports:
- "8081:8081"
volumes: &hat_volumes
- ./manage.py:/opt/app/manage.py
- ./hat:/opt/app/hat
- ./iaso:/opt/app/iaso
- ./beanstalk_worker:/opt/app/beanstalk_worker
- ./media:/opt/app/media
- ./plugins:/opt/app/plugins
- ./scripts:/opt/app/scripts
- ./entrypoint.sh:/opt/app/entrypoint.sh
- ./docs:/opt/app/docs
- ./README.md:/opt/app/README.md
# test data
- ./testdata:/opt/app/testdata
# jupyter notebooks
- ./notebooks:/opt/notebooks
links: &hat_links
- db
environment: &hat_environment
PREPAREDNESS_TEMPLATE_ID:
PREPAREDNESS_TEMPLATE_FR_ID:
PLUGINS:
GOOGLE_API_KEY_BASE64:
IASO_ENVIRONMENT: "development"
RDS_HOSTNAME: db
RDS_DB_NAME:
RDS_USERNAME: postgres
RDS_PASSWORD: postgres
DEBUG: "true"
TEST_PROD:
SECRET_KEY: secret
AWS_STORAGE_BUCKET_NAME:
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
PYTHONUNBUFFERED: "true"
ENKETO_DEV: "true"
ENKETO_API_TOKEN: AZE78974654azeAZE
ENKETO_URL:
EMAIL_BACKEND: "django.core.mail.backends.console.EmailBackend"
# Limit logging in dev to not overflow terminal
logging: &iaso_logging
driver: "json-file"
options:
max-size: "5k"
command: start_dev
db:
image:
iaso/postgis
# Workaround until there is a stable Postgis image for Apple Silicon
build: .docker/db
logging: *iaso_logging
ports:
- "5433:5432"
volumes:
- ../pgdata-iaso:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${RDS_DB_NAME}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# the webpack dev server
webpack:
image: iaso-webpack
build:
context: .
dockerfile: .docker/webpack/Dockerfile
depends_on:
- iaso
ports:
- "3000:3000"
volumes: *hat_volumes
environment: *hat_environment
logging: *iaso_logging
command: start_webpack