-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 1.56 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
services:
## DB
squid-postgres:
image: postgres:12
restart: always
ports:
- 5555:5432
volumes:
- /data/graphql/squid/postgres/indexer:/var/lib/postgresql/data
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
## Service
squid-service:
build:
context: ./graph/
network: host
volumes:
- "./config.json:/squid/lib/config.json:ro"
environment:
DB_HOST: squid-postgres
DB_PORT: 5432
DB_NAME: postgres
DB_USER: postgres
DB_PASS: postgres
depends_on:
- "squid-postgres"
networks:
- default
- internal-bridge
## Hasura
squid-graphql-engine:
image: hasura/graphql-engine:v2.7.0
networks:
- default
- proxy
depends_on:
- "squid-postgres"
- "squid-service"
restart: always
ports:
- 4010:8080
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgres@squid-postgres:5432/postgres
PG_DATABASE_URL: postgres://postgres:postgres@squid-postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "false"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
VIRTUAL_HOST: graph.gamedao.co
VIRTUAL_PORT: 4010
LETSENCRYPT_HOST: graph.gamedao.co
LETSENCRYPT_EMAIL: [email protected]
networks:
proxy:
name: proxy
external: true
internal-bridge:
name: internal-bridge
external: true