-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
148 lines (132 loc) · 3.61 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '3.8'
services:
# ===========================================================
builder:
build: ./services/op/builder
environment:
PRIVATE_KEY_DEPLOYER: ${PRIVATE_KEY}
PRIVATE_KEY_SEQUENCER: ${PRIVATE_KEY}
PRIVATE_KEY: ${PRIVATE_KEY}
ADMIN_ADDRESS: ${PUBLIC_ADDRESS}
SEQUENCER_ADDRESS: ${PUBLIC_ADDRESS}
BATCHER_ADDRESS: ${PUBLIC_ADDRESS}
PROPOSER_ADDRESS: ${PUBLIC_ADDRESS}
L1_RPC: ${L1_RPC}
L1_CHAIN_ID: ${L1_CHAIN_ID}
ETH_RPC_URL: ${L1_RPC}
L1STARTINGBLOCKTAG: ${L1STARTINGBLOCKTAG}
L2_OUTPUT_ORACLE_TIMESTAMP: ${L2_OUTPUT_ORACLE_TIMESTAMP}
DEPLOYMENT_CONTEXT: ${DEPLOYMENT_CONTEXT}
L2_BLOCKTIME: ${L2_BLOCKTIME}
L2_CHAIN_ID: ${L2_CHAIN_ID}
volumes:
- opstack-volume:/opstack/
logging:
driver: syslog
options:
syslog-address: "udp://localhost:59100"
syslog-format: "rfc3164"
tag: "builderlogs"
opgeth:
build: ./services/op/opgeth
environment:
SEQUENCER_ADDRESS: ${PUBLIC_ADDRESS}
L2_CHAIN_ID: ${L2_CHAIN_ID}
volumes:
- opstack-volume:/opstack/
depends_on:
- builder
restart:
always
ports:
- 8551:8551
- 8545:8545
opnode:
build: ./services/op/opnode
environment:
PRIVATE_KEY_SEQUENCER: ${PRIVATE_KEY}
L1_RPC: ${L1_RPC}
RPC_KIND: ${RPC_KIND}
volumes:
- opstack-volume:/opstack/
depends_on:
- builder
restart: always
ports:
- 8547:8547
opbatcher:
build: ./services/op/opbatcher
environment:
BATCHER_KEY: ${PRIVATE_KEY}
L1_RPC: ${L1_RPC}
volumes:
- opstack-volume:/opstack/
depends_on:
- builder
restart: always
ports:
- 8560:8560
op-proposer:
build: ./services/op/opproposer
environment:
PROPOSER_KEY: ${PRIVATE_KEY}
L1_RPC: ${L1_RPC}
volumes:
- opstack-volume:/opstack/
depends_on:
- builder
restart: always
# ===========================================================
redis_db:
extends:
file: ./services/docker-compose-redis.yml
service: redis_db
db:
extends:
file: ./services/docker-compose-db.yml
service: db
blockscout:
depends_on:
- db
- smart-contract-verifier
- redis_db
#image: blockscout/blockscout-optimism:latest
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
stop_grace_period: 5m
container_name: 'blockscout'
links:
- db:database
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_HTTP_URL: http://opgeth:8545
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
ECTO_USE_SSL: 'false'
SECRET_KEY_BASE: '56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN'
ports:
- 4000:4000
volumes:
- ./logs/:/app/logs/
smart-contract-verifier:
extends:
file: ./services/docker-compose-smart-contract-verifier.yml
service: smart-contract-verifier
visualizer:
extends:
file: ./services/docker-compose-visualizer.yml
service: visualizer
sig-provider:
extends:
file: ./services/docker-compose-sig-provider.yml
service: sig-provider
# ===========================================================
volumes:
opstack-volume:
networks:
shared_network: