forked from taomind007/filetao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
72 lines (67 loc) · 1.53 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
72
volumes:
redis-prod-data:
name: "filetao-redis-data"
x-filetao: &filetao
image: filetao
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
redis:
condition: service_healthy
volumes:
- ${BT_WALLETS_PATH}:/root/.bittensor/wallets
- ./scripts:/install/scripts
env_file:
- .env
network_mode: host
services:
filetao-miner:
<<: *filetao
volumes:
- ${BT_WALLETS_PATH}:/root/.bittensor/wallets
- ${FILETAO_MINER_DATA_DIR}:/root/.data/
environment:
- FILETAO_NODE=miner
env_file:
- .env
- path: filetao-miner.env
required: false
filetao-validator:
<<: *filetao
depends_on:
filetao-api:
condition: service_started
environment:
- FILETAO_NODE=validator
env_file:
- .env
- path: filetao-validator.env
required: false
filetao-api:
<<: *filetao
environment:
- FILETAO_NODE=api
env_file:
- .env
- path: filetao-api.env
required: false
redis:
image: redis:7.2.4-alpine
restart: always
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "--raw", "incr", "ping"]
interval: 1s
timeout: 3s
retries: 5
command:
- redis-server
- /etc/redis/redis.conf
- --requirepass
- ${REDIS_PASSWORD}
ports:
- "${REDIS_HOST:-127.0.0.1}:${REDIS_PORT:-6379}:6379"
volumes:
- redis-prod-data:/data
- ./redis/redis.conf:/etc/redis/redis.conf