-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
36 lines (36 loc) · 907 Bytes
/
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
services:
ingest:
build:
dockerfile: Dockerfile.ingest
ports:
- "8502:8502"
volumes:
- $PWD/auth:/home/intheirownwords/auth
- $PWD/prj:/home/intheirownwords/prj
- $PWD/env:/home/intheirownwords/env
- $PWD/ingest:/home/intheirownwords/ingest
- /usr/local/cuda:/usr/local/cuda
- $PWD/cache:/root/.cache
env_file:
- env/env.vars
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: on-failure
ui:
build:
dockerfile: Dockerfile.ui
ports:
- "80:8501"
volumes:
- $PWD/auth:/home/intheirownwords/auth
- $PWD/prj:/home/intheirownwords/prj
- $PWD/env:/home/intheirownwords/env
- $PWD/ingest:/home/intheirownwords/ingest
env_file:
- env/env.vars
restart: on-failure