-
Notifications
You must be signed in to change notification settings - Fork 317
/
docker-compose.yaml
71 lines (67 loc) · 1.46 KB
/
docker-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
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
services:
redis:
image: redis:alpine
command: redis-server --appendonly yes
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 3
networks:
- entropix-network
entropix:
build:
context: .
dockerfile: Dockerfile
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
- ./weights:/app/weights:ro
- ./logs:/app/logs
environment:
- CUDA_VISIBLE_DEVICES=0
- REDIS_URL=redis://redis:6379
depends_on:
redis:
condition: service_healthy
networks:
- entropix-network
ports:
- "8000:8000"
glances:
image: nicolargo/glances:latest
restart: always
pid: "host"
privileged: true
network_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro
- /:/rootfs:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
environment:
- GLANCES_OPT=-w
- TZ=${TZ}
ports:
- "61208-61209:61208-61209"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
runtime: nvidia
volumes:
redis-data:
networks:
entropix-network:
driver: bridge