-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (82 loc) · 2.8 KB
/
docker-compose.yml
File metadata and controls
85 lines (82 loc) · 2.8 KB
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
services:
iaso:
stdin_open: true
tty: true
build:
context: .
dockerfile: docker/django/Dockerfile
image: iaso
ports:
- '8081:8081'
volumes: &hat_volumes
- ./manage.py:/opt/app/manage.py
- ./hat:/opt/app/hat
- ./iaso:/opt/app/iaso
- ./setuper:/opt/app/setuper
- ./beanstalk_worker:/opt/app/beanstalk_worker
- ./django_sql_dashboard_export:/opt/app/django_sql_dashboard_export
- ./dynamic_fields:/opt/app/dynamic_fields
- ./media:/opt/app/media
- ./plugins:/opt/app/plugins
- ./scripts:/opt/app/scripts
- ./entrypoint.sh:/opt/app/entrypoint.sh
- ./README.md:/opt/app/README.md
- ./tsconfig.json:/opt/app/tsconfig.json
- ./vitest.config.ts:/opt/app/vitest.config.ts
- ./babel-register.js:/opt/app/babel-register.js
- ./mypy.ini:/opt/app/mypy.ini
- ./pyproject.toml:/opt/app/pyproject.toml
- ./htmlcov:/opt/app/htmlcov
# test data
- ./testdata:/opt/app/testdata
# jupyter notebooks
- ./notebooks:/opt/notebooks
# Optional Used to load dev bluesquare-components JS. See `Live Bluesquare components` in doc
- ../bluesquare-components:/opt/bluesquare-components
# Optional Used to load dev snt-malaria-budgeting Python package.
- ../snt-malaria-budgeting:/opt/snt-malaria-budgeting
links: &hat_links
- db
env_file:
- .env
logging: &iaso_logging
driver: 'json-file'
options:
max-size: '5k'
command: start_dev
db:
# https://registry.hub.docker.com/r/postgis/postgis
# Pinning specific minor versions of PostgreSQL and PostGIS is not easy.
# https://github.com/postgis/docker-postgis/issues/396
image: postgis/postgis:16-3.5
logging: *iaso_logging
ports:
- '5433:5432'
volumes:
- ../pgdata-iaso-16:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${RDS_DB_NAME}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# the webpack dev server
webpack:
image: iaso-webpack
platform: linux/amd64
build:
context: .
dockerfile: docker/webpack/Dockerfile
depends_on:
- iaso
ports:
- '3000:3000'
volumes: *hat_volumes
env_file:
- .env
logging: *iaso_logging
command: start_webpack
# celery worker for wfp plugin
redis:
image: redis:7
ports:
- "6379:6379"
profiles: ["celery"]