forked from gobitfly/eth2-beaconchain-explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (56 loc) · 1.46 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
version: '3.5'
services:
eth1:
image: ethereum/client-go:latest
container_name: eth1
restart: always
volumes:
- ./private/eth1_node:/root
network_mode: host
command:
- --goerli
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: host
prysm:
image: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
container_name: prysm
restart: always
volumes:
- ./private/eth2_data:/data
- ./private/eth1_node/.ethereum/goerli:$HOME/Goerli
network_mode: host
command:
- --datadir=/data
- --rpc-host=0.0.0.0
- --monitoring-host=0.0.0.0
- --http-web3provider=$HOME/Goerli/geth.ipc
- --accept-terms-of-use
depends_on:
- eth1
go:
image: golang:1.14
container_name: golang
restart: always
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app
network_mode: host
depends_on:
- eth1
- postgres
- prysm
command: /bin/sh
stdin_open: true
tty: true
volumes:
db: