-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcompose.yml
84 lines (77 loc) · 2.44 KB
/
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
version: '3.8'
name: efp-indexer
networks:
default:
driver: bridge
services:
ping:
container_name: efp-indexer-ping
image: bash:latest
build:
FROM bash:latest
WORKDIR /usr/src/app
RUN apk add --no-cache curl && rm -rf /var/cache/apk/*
COPY ./scripts/ping.sh /usr/src/app/ping.sh
command: ./ping.sh
entrypoint: /usr/local/bin/bash
networks:
- default
anvil:
container_name: efp-indexer-anvil
image: ghcr.io/foundry-rs/foundry:latest
command: anvil
tty: true
environment:
- ANVIL_IP_ADDR=0.0.0.0
ports:
- 8545:8545
networks:
- default
database:
container_name: efp-database
image: postgres:latest
restart: always
networks:
- default
command: postgres -c wal_level=logical -c max_replication_slots=20
volumes:
- database:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=efp
indexer:
container_name: efp-indexer
depends_on:
- database
restart: "no"
networks:
- default
stdin_open: true
tty: true
build:
context: .
dockerfile: Dockerfile
args:
- NODE_ENV=production
environment:
- NODE_ENV=${NODE_ENV:-production}
- DATABASE_URL=${DATABASE_URL:-postgresql://postgres:postgres@efp-database:5432/efp?sslmode=disable}
- ENABLE_DATABASE_LOGGING=${ENABLE_DATABASE_LOGGING:-true}
- CHAIN_ID=${CHAIN_ID:-11155111}
- ANKR_ID=${ANKR_ID}
- INFURA_ID=${INFURA_ID}
- LLAMAFOLIO_ID=${LLAMAFOLIO_ID}
- MAINNET_ALCHEMY_ID=${MAINNET_ALCHEMY_ID}
- SEPOLIA_ALCHEMY_ID=${SEPOLIA_ALCHEMY_ID}
- OPTIMISM_ALCHEMY_ID=${OPTIMISM_ALCHEMY_ID}
- ETHEREUM_LOCAL_NODE_URL=${ETHEREUM_LOCAL_NODE_URL:-http://host.docker.internal:8545}
- ANVIL_ACCOUNT_PRIVATE_KEY=${ANVIL_ACCOUNT_PRIVATE_KEY:-0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80}
- EFP_CONTRACT_ACCOUNT_METADATA=${EFP_CONTRACT_ACCOUNT_METADATA:-0x16a3457dB1D7dc58196C0b94D8F49f5e9eCba611}
- EFP_CONTRACT_LIST_REGISTRY=${EFP_CONTRACT_LIST_REGISTRY:-0xd66c005A5F1e26BaaDe97cb9f270c9Edfa78a684}
- EFP_CONTRACT_LIST_RECORDS=${EFP_CONTRACT_LIST_RECORDS:-0x84340faBF70340153fAB988404C4356EEf14d581}
- EFP_CONTRACT_LINT_MINTER=${EFP_CONTRACT_LINT_MINTER:-0x8581B0CA827Cf577269721A596CEfC2ffc09BaDB}
volumes:
database: