-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.34 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
60
61
version: '3'
services:
mongodb:
build:
context: apps
dockerfile: mongo5.dockerfile
network_mode: host
volumes:
- ./dataset/data:/data/db
init_database:
depends_on: [mongodb]
build:
context: apps
dockerfile: Dockerfile
args:
APP_NAME: init_database
command: ['python', 'src/init_database.py']
volumes:
- ./dataset:/dataset
network_mode: host
app:
depends_on: [mongodb]
build:
context: apps
dockerfile: Dockerfile
args:
APP_NAME: app
network_mode: host
notebooks:
depends_on: [mongodb]
build:
context: apps
dockerfile: Dockerfile_ubuntu
args:
APP_NAME: notebooks
command: jupyter notebook --NotebookApp.token='' --allow-root --no-browser
network_mode: host
volumes:
- ./dataset:/dataset
- ./apps/notebooks/src:/app/notebooks/src
devices:
- /dev/nvidia0:/dev/nvidia0
- /dev/nvidiactl:/dev/nvidiactl
- /dev/nvidia-uvm:/dev/nvidia-uvm
inference_app:
build:
context: apps
dockerfile: Dockerfile_ubuntu
args:
APP_NAME: inference_service
command: ['python3.9', 'src/inference_app.py', 'config/inference_config_docker.yml']
network_mode: host
volumes:
- ./logs:/logs
- ./models:/models
- ./dataset:/dataset