-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
98 lines (89 loc) · 2.38 KB
/
docker-compose.dev.yml
File metadata and controls
98 lines (89 loc) · 2.38 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
86
87
88
89
90
91
92
93
94
95
96
97
98
x-app: &default-app
build:
target: development
pull_policy: build
environment:
DJANGO_INTERNAL_IPS: ${DJANGO_INTERNAL_IPS:?}
DJANGO_SETTINGS_MODULE: adit.settings.development
FORCE_DEBUG_TOOLBAR: ${FORCE_DEBUG_TOOLBAR:-true}
REMOTE_DEBUGGING_ENABLED: ${REMOTE_DEBUGGING_ENABLED:-false}
REMOTE_DEBUGGING_PORT: ${REMOTE_DEBUGGING_PORT:-5678}
develop:
watch:
- action: sync
path: .
target: /app
ignore:
- .git/
- .venv/
- node_modules/
- action: rebuild
path: ./pyproject.toml
services:
init:
<<: *default-app
profiles:
- never
web:
<<: *default-app
image: adit_dev-web:latest
ports:
- ${WEB_DEV_PORT:-8000}:8000
- ${REMOTE_DEBUGGING_PORT:-5678}:5678
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
./manage.py migrate &&
./manage.py create_superuser &&
./manage.py create_example_users &&
./manage.py create_example_groups &&
./manage.py populate_example_data &&
wait-for-it -s orthanc1.local:6501 -t 60 &&
./manage.py populate_orthancs &&
./manage.py retry_stalled_jobs &&
./manage.py runserver 0.0.0.0:8000
"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health/"]
default_worker:
<<: *default-app
image: adit_dev-default_worker:latest
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
./manage.py bg_worker -l debug -q default --autoreload
"
dicom_worker:
<<: *default-app
image: adit_dev-dicom_worker:latest
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
./manage.py bg_worker -l debug -q dicom --autoreload
"
mass_transfer_worker:
<<: *default-app
image: adit_dev-mass_transfer_worker:latest
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
./manage.py bg_worker -l debug -q mass_transfer --autoreload
"
receiver:
<<: *default-app
image: adit_dev-receiver:latest
ports:
- 11122:11112
command: |
./manage.py receiver --autoreload
postgres:
environment:
POSTGRES_PASSWORD: postgres
ports:
- ${POSTGRES_DEV_PORT:-5432}:5432
orthanc1:
ports:
- "7501:7501"
orthanc2:
ports:
- "7502:7502"