-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
62 lines (58 loc) · 1.67 KB
/
docker-compose.yaml
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
version: '3.7'
services:
mongo:
image: mongo:4.4
container_name: starkgate-bridge-mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
ports:
- ${MONGO_PORT}:27017
volumes:
- mongo-data:/data/db
indexer:
image: shardlabs/starkgate-bridge-indexer:latest
container_name: starkgate-bridge-indexer
restart: always
environment:
MONGO_URL: ${MONGO_URL}
NETWORK_ID: ${NETWORK_ID}
FIRST_BLOCK: ${FIRST_BLOCK}
LOGLEVEL: "${LOG_LEVEL}"
RECORD_LOGS: ""
GRAPHQL_URL: ${GRAPHQL_URL}
GRAPHQL_PORT: ${GRAPHQL_PORT}
BUILD_ENV: ${BUILD_ENV}
ports:
- ${GRAPHQL_PORT}:${GRAPHQL_PORT}
depends_on:
- mongo
relayer:
image: shardlabs/starkgate-bridge-relayer:latest
container_name: starkgate-bridge-relayer
restart: always
environment:
RELAYER_PORT: ${RELAYER_PORT}
GRAPHQL_URL: ${GRAPHQL_URL}
GRAPHQL_PORT: ${GRAPHQL_PORT}
NETWORK_ID: ${NETWORK_ID}
PRIVATE_KEY: ${PRIVATE_KEY}
MONGO_URL: ${MONGO_URL}
MONGO_INITDB_NAME: ${MONGO_INITDB_NAME}
INFURA_RPC_URL: ${INFURA_RPC_URL}
ALCHEMY_RPC_URL: ${ALCHEMY_RPC_URL}
FIRST_BLOCK: ${FIRST_BLOCK}
INDEXER_URL: ${INDEXER_URL}
RELAYER_L2_ADDRESS: ${RELAYER_L2_ADDRESS}
ETHERSCAN_API_KEY: ${ETHERSCAN_API_KEY}
DISCORD_WEBHOOK_URL: ${DISCORD_WEBHOOK_URL}
METRICS_PORT: ${METRICS_PORT}
ports:
- '${RELAYER_PORT}:${RELAYER_PORT}'
- '${METRICS_PORT}:${METRICS_PORT}'
depends_on:
- mongo
- indexer
volumes:
mongo-data: