-
Notifications
You must be signed in to change notification settings - Fork 165
/
docker-compose.yml
87 lines (77 loc) · 2.17 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
version: '3.8'
# Ports
# Dev chain 1: 8545
# Dev chain 2: 8546
# Builder: 3000
# Explorer: 3001
# Manager: 3002
# Pinata: 3003
# Indexer: 3004
services:
pina:
image: ghcr.io/gitcoinco/pina:main
networks:
- grants-stack
ports:
- '127.0.0.1:3003:8000'
local-chain-1:
image: ghcr.io/foundry-rs/foundry:nightly-b174c3a4f80938636f18b3c9e49d45e6643f64a9
networks:
- grants-stack
ports:
- '127.0.0.1:8545:8545'
environment:
- DEV_CHAIN_ID=313371
entrypoint: ["anvil", "--host", "0.0.0.0", "--chain-id", "313371"]
local-chain-2:
image: ghcr.io/foundry-rs/foundry:nightly-b174c3a4f80938636f18b3c9e49d45e6643f64a9
networks:
- grants-stack
ports:
- '127.0.0.1:8546:8545'
environment:
- DEV_CHAIN_ID=313372
entrypoint: ["anvil", "--host", "0.0.0.0", "--chain-id", "313372"]
indexer-db:
image: postgres:13
networks:
- grants-stack
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
indexer:
image: ghcr.io/gravityblast/grants-stack-indexer:main
networks:
- grants-stack
ports:
- '127.0.0.1:3004:4000'
depends_on:
- indexer-db
- pina
- local-chain-1
- local-chain-2
volumes:
- ./tmp/indexer/passport_scores.leveldb:/var/indexer/passport_scores.leveldb
environment:
- STORAGE_DIR=/var/indexer
- DATABASE_URL=postgres://postgres:postgres@indexer-db:5432/postgres
- INDEXED_CHAINS=dev1,dev2
- DEV1_RPC_URL=http://local-chain-1:8545
- DEV2_RPC_URL=http://local-chain-2:8545
- IPFS_GATEWAY=http://pina:8000
- PASSPORT_SCORER_ID=335
- PASSPORT_API_KEY=xn9e7AFv.aEfS0ioNhaVtww1jdwnsWtxnrNHspVsS
- COINGECKO_API_KEY=CG-9B9jhrcgAbCdN1QX9bVa1o7v
- PORT=4000
- DEPLOYMENT_ENVIRONMENT=local
- LOG_LEVEL=debug
- ENABLE_RESOURCE_MONITOR=false
- BUILD_TAG=local
entrypoint: ["bash", "-c", "sleep 2 && node dist/src/index.js --http-wait-for-sync=false --drop-db | ./node_modules/.bin/pino-pretty"]
networks:
grants-stack:
name: grants-stack
driver: bridge