-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yaml
More file actions
36 lines (30 loc) · 1.03 KB
/
Copy pathcompose.yaml
File metadata and controls
36 lines (30 loc) · 1.03 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
services:
wise:
image: ${REGISTRY:-$USER}/wise:${VERSION:-latest}
build:
dockerfile: Dockerfile
target: wise
context: .
init: true
# HOST_UID and HOST_GID are needed at runtime to make sure the volume mounts work alright
user: ${HOST_UID?'HOST_UID must be set before using this compose.yaml. Please see docs/Docker.md'}:${HOST_GID?'HOST_GID must be set before using this compose.yaml. Please see docs/Docker.md'}
environment:
- MODE=production
- WISE_PROJECT
ports:
- ${PORT:-9670}:9670
# Pass wise project dir to persist projects
volumes:
- ${WISE_PROJECT_DIR:-$PWD/projects}:/wise/projects # need read permission for serve, read-write for other commands
- ${WISE_REPORT_DATA_DIR:-$PWD/data}:/wise/data # keep this with write permission for the user
- wise-cache:/tmp
deploy:
resources:
reservations:
devices:
- driver: 'nvidia'
capabilities: [gpu]
count: 1
shm_size: 1G
volumes:
wise-cache: