-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
70 lines (63 loc) · 1.75 KB
/
docker-compose.dev.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
x-app: &default-app
image: adit_dev:latest
volumes:
- .:/app
- vscode-server:/root/.vscode-server/extensions
- vscode-server-insiders:/root/.vscode-server-insiders/extensions
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}
pull_policy: never
services:
init:
<<: *default-app
profiles:
- never
web:
<<: *default-app
build:
target: development
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 runserver 0.0.0.0:8000
"
default_worker:
<<: *default-app
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
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
./manage.py bg_worker -l debug -q dicom --autoreload
"
receiver:
<<: *default-app
ports:
- "11122:11112"
command: |
./manage.py receiver --autoreload
postgres:
environment:
POSTGRES_PASSWORD: postgres
volumes:
vscode-server:
vscode-server-insiders: