forked from gobitfly/eth2-beaconchain-explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (70 loc) · 1.93 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '2.4'
services:
eth1:
image: ethereum/client-go:latest
container_name: eth1
restart: always
volumes:
- ./private/eth1_node:/root
network_mode: host
# healthcheck:
# test: sleep 5
# interval: 1s
# timeout: 1s
# retries: 1
command: # comment this out for mainnet
- --goerli # comment this out for mainnet
postgres:
image: postgres:12.0
container_name: postgres
restart: always
environment:
- POSTGRES_PASSWORD=pass
- POSTGRES_USER=postgres
- POSTGRES_DB=db
- PGDATA=/postgresql/data
volumes:
- db:/postgresql/data
network_mode: bridge
ports:
- "5432:5432"
expose:
- 5432
prysm:
image: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
container_name: prysm
restart: always
volumes:
- ./private/eth2_data:/data
# - ./private/eth2_data/main:/data # use this for mainnet
- ./private/eth1_node/.ethereum:/eth
network_mode: host
command:
- --datadir=/data
- --rpc-host=0.0.0.0
- --monitoring-host=0.0.0.0
- --http-web3provider=/eth/goerli/geth.ipc
# - --http-web3provider=/eth/geth.ipc #use this option for mainnet
- --accept-terms-of-use
depends_on:
- eth1
# condition: service_healthy
go:
image: golang:1.15
container_name: golang
restart: always
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app
network_mode: bridge
ports:
- "3333:3333"
expose:
- 3333
depends_on:
- postgres
command: /bin/sh
stdin_open: true
tty: true
volumes:
db: