forked from gitcoinco/grants-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.47 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
version: '3.8'
# Ports
# Builder: 3000
# Explorer: 3001
# Manager: 3002
# Pinata: 3003
# Indexer: 3004
# Dev chain 1: 3005
# Subgraph dev chain 1: 3006
# Dev chain 2: 3007
# Subgraph dev chain 2: 3008
services:
pinata:
image: ghcr.io/gitcoinco/pina:main
ports:
- '127.0.0.1:3003:8000'
localchain-1:
image: ghcr.io/gitcoinco/allo-contracts-v1:main
ports:
- '127.0.0.1:3005:8545'
environment:
- DEV_CHAIN_ID=313371
# initializes localchain deploying contracts and populates with test data
dev-setup-1:
image: ghcr.io/gitcoinco/allo-contracts-v1:main
depends_on:
- pinata
- localchain-1
environment:
- PINATA_HOST=pinata
- PINATA_PORT=8000
- DEV_CHAIN_HOST=localchain-1
- DEV_CHAIN_ID=313371
restart: "no"
entrypoint: [ "bash", "-c", "sleep 2 && corepack enable && exec ./docker/deploy-contracts.sh"]
localchain-2:
image: ghcr.io/gitcoinco/allo-contracts-v1:pr-1
ports:
- '127.0.0.1:3007:8545'
environment:
- DEV_CHAIN_ID=313372
# initializes localchain deploying contracts and populates with test data
dev-setup-2:
image: ghcr.io/gitcoinco/allo-contracts-v1:pr-1
depends_on:
- pinata
- localchain-2
environment:
- PINATA_HOST=pinata
- PINATA_PORT=8000
- DEV_CHAIN_HOST=localchain-2
- DEV_CHAIN_ID=313372
restart: "no"
entrypoint: [ "bash", "-c", "sleep 2 && corepack enable && exec ./docker/deploy-contracts.sh"]