-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yaml
More file actions
35 lines (29 loc) · 893 Bytes
/
compose.yaml
File metadata and controls
35 lines (29 loc) · 893 Bytes
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
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
- wise-cache:/tmp
deploy:
resources:
reservations:
devices:
- driver: 'nvidia'
capabilities: [gpu]
count: 1
shm_size: 1G
volumes:
wise-cache: