forked from kimpers/lighthouse-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 1.55 KB
/
docker-compose.yml
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
version: "3.0"
services:
beacon_node:
image: sigp/lighthouse:${LIGHTHOUSE_VERSION}
volumes:
- ./lighthouse-data:/root/.lighthouse
- ./scripts:/root/scripts:ro
- ./jwttoken:/root/jwttoken:ro
ports:
- 5052:5052/tcp
- 5053:5053/tcp
- 5054:5054/tcp # metrics endpoint
- 9000:9000/tcp
- 9000:9000/udp
env_file: .env
command: sh /root/scripts/start-beacon-node.sh
restart: on-failure
stop_grace_period: 3m
validator_client:
image: sigp/lighthouse:${LIGHTHOUSE_VERSION}
volumes:
- ./lighthouse-data:/root/.lighthouse
- ./scripts:/root/scripts:ro
- ./validator_keys:/root/validator_keys:ro
depends_on:
- beacon_node
ports:
- 5064:5064/tcp # metrics endpoint
env_file: .env
command: sh /root/scripts/start-validator-client.sh
restart: on-failure
stop_grace_period: 3m
geth:
image: ethereum/client-go:${GETH_VERSION}
entrypoint: /bin/sh
volumes:
- ./geth-data:/root/.ethereum
- ${GETH_ANCIENT_CHAINDATA_DIR}:/root/ancient-data
- ./scripts:/root/scripts:ro
- ./jwttoken:/root/jwttoken:ro
ports:
- 30303:30303/tcp
- 30303:30303/udp
expose:
- 8551
env_file: .env
command: /root/scripts/start-geth.sh
restart: on-failure
stop_grace_period: 3m