-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.68 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.8"
services:
wraith:
build: .
container_name: wraith-service
ports:
- "5678:5678"
volumes:
- ./storage:/data
- ./host-files:/host-files
restart: unless-stopped
environment:
- GNOSIS_WRAITH_STORAGE_PATH=/data
- QUART_APP=app:app
- QUART_ENV=production
- RUNNING_IN_CLOUD=false
- REDIS_HOST=redis
- REDIS_PORT=6379
- ENABLE_USER_PARTITIONING=true
depends_on:
- redis
profiles: [cpu]
wraith-gpu:
build: .
container_name: wraith-service-gpu
ports:
- "5678:5678"
volumes:
- ./storage:/data
- ./host-files:/host-files
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu, utility, compute]
environment:
- GNOSIS_WRAITH_STORAGE_PATH=/data
- QUART_APP=app:app
- QUART_ENV=production
- NVIDIA_VISIBLE_DEVICES=all
- RUNNING_IN_CLOUD=false
- REDIS_HOST=redis
- REDIS_PORT=6379
- ENABLE_USER_PARTITIONING=true
depends_on:
- redis
profiles: [gpu]
redis:
image: redis:6-alpine
container_name: wraith-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
restart: unless-stopped
command: redis-server --appendonly yes
# For development, an admin UI for Redis
redis-commander:
image: rediscommander/redis-commander:latest
container_name: wraith-redis-commander
ports:
- "8081:8081"
environment:
- REDIS_HOSTS=local:redis:6379
depends_on:
- redis
profiles: [dev]
volumes:
redis-data:
driver: local