-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
86 lines (80 loc) · 1.83 KB
/
docker-compose.prod.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
ipfs-sflr:
image: ipfs/kubo:latest
restart: always
ports:
- '15001:5001'
volumes:
- ipfs_staging:/export
- ipfs_data:/data/ipfs
environment:
IPFS_PROFILE: "server"
networks:
sflr_network:
aliases:
- ipfs
postgres-sflr:
image: postgres:latest
restart: always
ports:
- '15432:5432'
environment:
POSTGRES_PASSWORD: letmein
POSTGRES_USER: postgres
POSTGRES_DB: graph-node
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C"
command: ["postgres", "-c", "shared_preload_libraries=pg_stat_statements"]
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- sflr_network
graph-node-sflr:
image: graphprotocol/graph-node:latest
restart: always
ports:
- '18000:8000'
- '18001:8001'
- '18020:8020'
- '18030:8030'
- '18040:8040'
depends_on:
- ipfs-sflr
- postgres-sflr
environment:
postgres_host: postgres-sflr
postgres_user: postgres
postgres_pass: letmein
postgres_db: graph-node
ipfs: 'http://ipfs-sflr:5001'
ethereum: 'flare:https://flare.solidifi.app/ext/C/rpc'
GRAPH_LOG: info
ETHEREUM_REORG_THRESHOLD: 0
ETHEREUM_ANCESTOR_COUNT: 0
GRAPH_ETH_CALL_BY_NUMBER: true
networks:
- sflr_network
deploy-subgraph-sflr:
build:
context: .
dockerfile: Dockerfile
restart: no
environment:
- SUBGRAPH_NAME=sflr-subgraph
- NODE_URL=http://graph-node-sflr:8020/
- IPFS_URL=http://ipfs-sflr:5001
- VERSION=0.0.6
depends_on:
- graph-node-sflr
- ipfs-sflr
networks:
- sflr_network
volumes:
- .:/usr/src/app
networks:
sflr_network:
name: sflr_network
volumes:
ipfs_staging:
ipfs_data:
pgdata:
name: sflr-subgraph