-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.override.yml
44 lines (44 loc) · 1.64 KB
/
docker-compose.override.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
# docker-compose.override.yml for development. Only brings up minimal set
# of containers, postgresql, redis, opentpod and one opentpod-worker that
# handles all jobs.
#
# docker-compose up -d
#
version: "3.2"
services:
opentpod:
build: .
image: opentpod:latest
command: [ "./run-development.sh" ]
volumes:
# mount local source into container
- ./config:/root/openTPOD/config:ro
- ./cvat:/root/openTPOD/cvat:ro
- ./datumaro:/root/openTPOD/datumaro:ro
- ./frontend/src:/root/openTPOD/frontend/src:ro
- ./manage.py:/root/openTPOD/manage.py:ro
- ./opentpod:/root/openTPOD/opentpod:ro
ports:
- 127.0.0.1:20000:8000
environment:
- DJANGO_DEBUG=true
opentpod-worker: &opentpod-worker
build: .
image: opentpod:latest
command: [ "./run-worker.sh", "default" ]
volumes:
- ./config:/root/openTPOD/config:ro
- ./cvat:/root/openTPOD/cvat:ro
- ./datumaro:/root/openTPOD/datumaro:ro
- ./manage.py:/root/openTPOD/manage.py:ro
- ./opentpod:/root/openTPOD/opentpod:ro
environment:
- DJANGO_DEBUG=true
- NVIDIA_VISIBLE_DEVICES=all # needed for cuda devices to be visible
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
opentpod-trainer:
<<: *opentpod-worker
command: [ "./run-worker.sh", "low" ]
opentpod-rqscheduler:
<<: *opentpod-worker
command: [ "bash", "-c", "rqscheduler --host=opentpod-redis --port=6379 --db=0 --password=${OPENTPOD_REDIS_PASSWORD}" ]