-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.graph.yml
83 lines (82 loc) · 1.92 KB
/
docker-compose.graph.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
version: '3.8'
services:
graph-node:
image: graphprotocol/graph-node:latest
container_name: graph-node
ports:
- '8000:8000'
- '8001:8001'
- '8020:8020'
- '8030:8030'
- '8040:8040'
depends_on:
- ipfs
- postgres
extra_hosts:
- host.docker.internal:host-gateway
environment:
postgres_host: ${POSTGRES_HOST}
postgres_user: ${POSTGRES_USER}
postgres_pass: ${POSTGRES_PASSWORD}
postgres_db: ${POSTGRES_DB}
ipfs: 'ipfs:5001'
ethereum: ${GRAPH_NETWORK}
GRAPH_LOG: info
ethereum_polling_interval: 3000
networks:
- amoy
ipfs:
image: ipfs/go-ipfs:v0.17.0
container_name: ipfs
ports:
- '5001:5001'
volumes:
- ./volumes/ipfs:/data/ipfs
networks:
- amoy
postgres:
image: postgres:14
container_name: postgres
ports:
- '5432:5432'
command:
[
"postgres",
"-cshared_preload_libraries=pg_stat_statements",
"-cmax_connections=200"
]
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
PGDATA: "/var/lib/postgresql/data"
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
networks:
- amoy
pgadmin:
image: dpage/pgadmin4:4.23
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGADMIN_LISTEN_PORT: 80
ports:
- '15432:80'
volumes:
- ./volumes/pgadmin:/var/lib/pgadmin
- ./volumes/servers.json:/pgadmin4/servers.json
depends_on:
- postgres
networks:
- amoy
networks:
amoy:
name: amoy
external: true