-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose-lightweb.yaml
More file actions
52 lines (51 loc) · 1.4 KB
/
docker-compose-lightweb.yaml
File metadata and controls
52 lines (51 loc) · 1.4 KB
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
services:
dat-webapp:
container_name: dat-webapp
image: dat-webapp:latest
runtime: nvidia #Comment this if there are no GPUs in your machine
build:
context: .
dockerfile: Dockerfile-lightweb
environment:
- datapath=/work/models
networks:
- dat-network
volumes:
- dat-yaml-volume:/work/yaml_dir
- dat-corpora-volume:/work/uploaded_corpora
- dat-workdir-volume:/work/transient #this is the workdir where intermediate files will sit, you want this to have plenty of disk space
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
dat-workdir-volume:
driver: local
driver_opts:
device: ./transient
o: bind
type: local
networks:
dat-network: