-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathdocker-compose.vali.yml
More file actions
36 lines (34 loc) · 953 Bytes
/
docker-compose.vali.yml
File metadata and controls
36 lines (34 loc) · 953 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
36
services:
validator:
image: entrius/gittensor:latest
container_name: gt-vali
restart: unless-stopped
mem_limit: "3g"
entrypoint: /app/scripts/vali-entrypoint.sh
env_file:
- .env
ports:
- "${PORT}:${PORT}"
volumes:
# 'ro' = readonly
- ${WALLET_PATH}:/root/.bittensor/wallets:ro
- ./data:/app/data
# optional: uncomment this if you are running validator database
# networks:
# - gittensor_network
labels:
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
image: nickfedor/watchtower
container_name: gittensor-watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
WATCHTOWER_POLL_INTERVAL: 200
WATCHTOWER_LABEL_ENABLE: "true"
WATCHTOWER_CLEANUP: "true"
# uncomment this if you are running validator database
# networks:
# gittensor_network:
# external: true