-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose-staking-mainnet.yml
63 lines (60 loc) · 1.61 KB
/
docker-compose-staking-mainnet.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
version: '3.8'
services:
ipfs:
image: ipfs/kubo:latest
pull_policy: always
container_name: ipfs
ports:
- "5001:5001" # IPFS API
- "8080:8080" # Gateway port
volumes:
#- ./data/ipfs:/data/ipfs # enable to have persistency between restarts
nginx:
image: nginx:latest
pull_policy: always
container_name: nginx
depends_on:
- ipfs
ports:
- "8088:8088"
env_file:
- ./staking/.env
entrypoint: /bin/sh -c "/generate_nginx_config.sh && nginx -g 'daemon off;'"
volumes:
- ./staking/generate_nginx_config.sh:/generate_nginx_config.sh:ro
op-geth: # this is Optimism's geth client
pull_policy: always
build:
context: .
dockerfile: ./mainnet/op-geth.Dockerfile
ports:
- 8545:8545 # RPC
- 8546:8546 # websocket
- 30303:30303 # P2P TCP (currently unused)
- 30303:30303/udp # P2P UDP (currently unused)
- 7301:6060 # metrics
env_file:
- .env.default
- ./mainnet/.env
volumes:
#- ./geth-data/:/data # enable to have persistency between restarts
- ./mainnet/genesis.json:/genesis.json
op-node:
pull_policy: always
build:
context: .
dockerfile: ./mainnet/op-node.Dockerfile
depends_on:
- op-geth
ports:
- 7545:8545 # RPC
- 9222:9222 # P2P TCP
- 9222:9222/udp # P2P UDP
- 7300:7300 # metrics
- 6060:6060 # pprof
env_file:
- .env.default
- ./mainnet/.env
volumes:
- ./mainnet/rollup.json:/rollup.json
- ./mainnet/genesis.json:/genesis.json