-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
45 lines (44 loc) · 1.06 KB
/
docker-compose.yaml
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
services:
dat-webapp:
container_name: dat-webapp
image: dat-webapp:latest
#runtime: nvidia
build:
context: .
dockerfile: Dockerfile
environment:
- datapath=/work/models
networks:
- dat-network
volumes:
- dat-yaml-volume:/work/yaml_dir
- dat-corpora-volume:/work/uploaded_corpora
ports:
- "5000:8000"
dat-front:
container_name: dat-front
image: dat-front:latest
build:
context: ./front
dockerfile: Dockerfile
ports:
- "8000:3000"
networks:
- dat-network
volumes:
- dat-yaml-volume:/yaml_dir
volumes:
dat-corpora-volume:
driver: local
driver_opts:
device: ./uploaded_corpora
o: bind
type: local
dat-yaml-volume:
driver: local
driver_opts:
device: ./yaml_dir
o: bind
type: local
networks:
dat-network: