-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (56 loc) · 1.3 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
services:
mongodb:
image: mongo:7.0
volumes:
- ./data/mongodb:/data/db
- ./dumps/mongodb:/dumps
ports:
- "27017:27017"
# rabbitmq:
# image: rabbitmq
# healthcheck:
# test: [ "CMD", "rabbitmqctl", "status"]
# interval: 5s
# timeout: 20s
# retries: 5
# hpc_dispatcher:
# volumes:
# - ./hpc_dispatcher:/app
# build: hpc_dispatcher
# stdin_open: true
# tty: true
# depends_on:
# rabbitmq:
# condition: service_healthy
bio_api:
build: .
volumes:
- .:/app
- ./dmx_data:/dmx_data
- ./test_client/input_data:/input_data
ports:
- "8000:8000"
tty: true
entrypoint: ["uvicorn"]
command: ["main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
depends_on:
mongodb:
condition: service_started
# rabbitmq:
# condition: service_healthy
# hpc_dispatcher:
# condition: service_started
environment:
- FAKE_LONG_RUNNING_JOBS=1
test_client:
build: ./test_client
volumes:
- ./test_client:/app
tty: true
depends_on:
bio_api:
condition: service_started
# mongodb:
# condition: service_started
# rabbitmq:
# condition: service_healthy