-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
128 lines (120 loc) · 3.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
128 lines (120 loc) · 3.15 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.9"
services:
redis:
image: redis:${REDIS_VERSION:-alpine}
container_name: redis
restart: unless-stopped
expose:
- 6379
networks:
- cqt-net
ports:
- "6379:6379"
volumes:
- ./data/redis:/data
logging:
options:
max-size: "1g"
geth:
image: "us-docker.pkg.dev/covalent-project/network/bsp-geth:${BSP_GETH_VERSION:-latest}"
container_name: execution
restart: unless-stopped
stop_grace_period: 1m
env_file: [".env"]
depends_on:
- redis
networks:
- cqt-net
ports:
- 30303:30303/tcp # p2p
- 30303:30303/udp # p2p
- 8545:8545
- 8551:8551
volumes:
- ./data/ethereum/:/data/.ethereum
- ./scripts/start-geth.sh:/scripts/start-geth.sh:ro
- ./secrets/jwt.hex:/jwt.hex
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
entrypoint: sh /scripts/start-geth.sh
logging:
options:
max-size: "1g"
lighthouse:
image: sigp/lighthouse:${LIGHTHOUSE_VERSION:-latest}
container_name: consensus
restart: unless-stopped
stop_grace_period: 1m
networks:
- cqt-net
volumes:
- ./data/lighthouse:/root/.lighthouse
- ./scripts/start-lighthouse.sh:/scripts/start-lighthouse.sh:ro
- ./secrets/jwt.hex:/jwt.hex
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 5052:5052
env_file: [".env"]
entrypoint: sh /scripts/start-lighthouse.sh
logging:
options:
max-size: "1g"
ewm-das:
image: "us-docker.pkg.dev/covalent-project/network/ewm-das:${EWM_DAS_IPFS_VERSION:-stable}"
volumes:
- ./scripts/start-ipfs.sh:/scripts/start-ipfs.sh:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./secrets/proof.out:/proof.out:ro
- ./ipfs:/root/.ipfs/
container_name: ewm-das
restart: on-failure
env_file: [".env"]
entrypoint: sh /scripts/start-ipfs.sh
networks:
- cqt-net
ports:
- "4001:4001"
- "3001:3001"
- "5080:5080"
logging:
options:
max-size: "1g"
agent:
image: "us-docker.pkg.dev/covalent-project/network/bsp-agent:${BSP_AGENT_VERSION:-latest}"
container_name: bsp-agent
restart: unless-stopped
depends_on:
- redis
volumes:
- bsp-agent:/app/data
- ./scripts/start-agent.sh:/scripts/start-agent.sh:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./block-ethereum.avsc:/app/codec/block-ethereum.avsc:ro
entrypoint: sh /scripts/start-agent.sh
env_file: [".env"]
networks:
- cqt-net
ports:
- "8080:8080"
logging:
options:
max-size: "1g"
restart-on-agent-failure:
image: docker:latest
container_name: restart-on-agent-failure
restart: "no"
depends_on:
- agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./scripts/restart-on-agent-failure.sh:/scripts/restart-on-agent-failure.sh:ro
entrypoint: sh /scripts/restart-on-agent-failure.sh
networks:
cqt-net:
name: cqt-net
driver: bridge
volumes:
bsp-agent: