-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose-win.yml
91 lines (88 loc) · 2.26 KB
/
docker-compose-win.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
86
87
88
89
90
91
version: "3.3"
services:
rabbitmq:
image: shipai/boa-rabbitmq
build:
dockerfile: scripts/rabbitmq.dockerfile
context: .
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USERNAME}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
ports:
- "15672:15672"
worker-gpu:
image: shipai/boa-task-gpu
build:
dockerfile: scripts/task_gpu.dockerfile
context: .
args:
- GIT_VERSION=${GIT_VERSION}
- PACKAGE_VERSION=${PACKAGE_VERSION}
environment:
- CELERY_BROKER
- ORTHANC_URL
- ORTHANC_PORT
- ORTHANC_USERNAME
- ORTHANC_PASSWORD
- POSTGRES_HOST
- POSTGRES_PORT
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DATABASE
- PREDICT_FAST
# Output vars
- PATIENT_INFO_IN_OUTPUT
- SMB_DIR_OUTPUT
- SMB_USER
- SMB_PWD
- SEGMENTATION_UPLOAD_URL
- UPLOAD_USER
- UPLOAD_PWD
restart: always
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
- ${SEGMENTATION_DIR}:/storage_directory
- ${LOCAL_WEIGHTS_PATH}:/app/weights
command: ["python", "-m", "celery", "--app", "celery_task", "worker", "--concurrency=1", "--loglevel=INFO", "-P", "threads"]
depends_on:
- rabbitmq
orthanc:
image: shipai/boa-orthanc
build:
dockerfile: scripts/orthanc.dockerfile
context: .
args:
- GIT_VERSION=${GIT_VERSION}
- PACKAGE_VERSION=${PACKAGE_VERSION}
environment:
- CELERY_BROKER
- POSTGRES_HOST
- POSTGRES_PORT
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DATABASE
- |
ORTHANC__REGISTERED_USERS=
{"${ORTHANC_USERNAME}": "${ORTHANC_PASSWORD}"}
restart: always
ports:
- "4242:4242"
- "${ORTHANC_PORT}:8042"
monitoring:
image: postgres:latest
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5433:5432"
volumes:
- ${POSTGRES_DATA}:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql