forked from AffineFoundation/affine-cortex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 1.81 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
version: "3.8"
services:
validator:
image: thebes1618/affine:latest
container_name: affine-validator
restart: unless-stopped
mem_reservation: "6g"
mem_limit: "8g"
env_file:
- .env
volumes:
- ./.env:/app/.env:ro
- validator-cache:/app/data/blocks
environment:
- AFFINE_CACHE_DIR=/app/data/blocks
- SIGNER_URL=http://signer:8080
depends_on:
signer:
condition: service_healthy
command: ["-vv", "validate"]
runner:
image: thebes1618/affine:latest
container_name: affine-runner
restart: unless-stopped
mem_reservation: "6g"
mem_limit: "8g"
env_file:
- .env
volumes:
- ./.env:/app/.env:ro
- ~/.bittensor/wallets:/root/.bittensor/wallets:ro
- /var/run/docker.sock:/var/run/docker.sock
# runner doesn’t need the cache—omit or give its own if desired
environment:
- SIGNER_URL=http://signer:8080
command: ["-vv", "runner"]
signer:
image: thebes1618/affine:latest
container_name: affine-signer
restart: unless-stopped
env_file:
- .env
environment:
- SIGNER_HOST=0.0.0.0
- SIGNER_PORT=8080
volumes:
- ./.env:/app/.env:ro
- ~/.bittensor/wallets:/root/.bittensor/wallets:ro
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/healthz"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
command: ["-v", "signer"]
watchtower:
image: containrrr/watchtower
container_name: affine-watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 affine-validator affine-runner affine-signer
volumes:
grafana-storage:
validator-cache:
name: affine-validator-cache