-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.22 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
version: "3"
services:
evm1:
image: ghcr.io/sygmaprotocol/indexer-evm1:latest
container_name: evm1
command: ganache-cli --chainId 1337 -d --db data/ --blockTime 2 > /dev/null
logging:
driver: none
ports:
- "8545:8545"
evm2:
image: ghcr.io/sygmaprotocol/indexer-evm2:latest
command: ganache-cli --chainId 1338 -d --db data/ --blockTime 2 > /dev/null
container_name: evm2
logging:
driver: none
ports:
- "8547:8545"
substrate-pallet:
container_name: substrate-pallet
command: ["--pruning=25000"]
image: ghcr.io/sygmaprotocol/indexer-substrate:latest
ports:
- "9944:9944"
- "9933:9933"
logging:
driver: none
db:
image: postgres:15
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_PASSWORD: ${DB_PASS}
ports:
- "23798:${DB_PORT}"
env_file: ./envs/.env.indexer.example
indexer:
build:
context: .
dockerfile: ./Dockerfile
restart: on-failure
depends_on:
- db
env_file: ./envs/.env.indexer.example
api:
build:
context: .
dockerfile: ./Dockerfile.api
depends_on:
- indexer
env_file: ./envs/.env.indexer.example
ports:
- "8000:8000"