-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.26 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
version: "3.6"
services:
db:
build: docker-db/
restart: always
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PASSWORD
- POSTGRES_DB=otohime
- POSTGRES_DB_USER=otohime
- POSTGRES_DB_PASSWORD
volumes:
- dbdata_16:/var/lib/postgresql/data
shm_size: 256mb
hasura:
image: hasura/graphql-engine:v2.45.1-ce
ports:
- "127.0.0.1:8580:8080"
depends_on:
- "db"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://otohime:${POSTGRES_DB_PASSWORD}@db:5432/otohime
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
HASURA_GRAPHQL_DEV_MODE: "${HASURA_DEV_MODE}"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: "${HASURA_GRAPHQL_ADMIN_SECRET}"
HASURA_GRAPHQL_AUTH_HOOK: http://hooks:8787/auth/
HASURA_GRAPHQL_ENABLED_APIS: "${HASURA_GRAPHQL_ENABLED_APIS}"
hooks:
build: hooks/
depends_on:
- "db"
- "hasura"
environment:
FIREBASE_ID: ${FIREBASE_ID}
SEGA_ID: ${SEGA_ID}
SEGA_PASSWORD: ${SEGA_PASSWORD}
PGUSER: otohime
PGDATABASE: otohime
PGHOST: db
PGPASSWORD: ${POSTGRES_DB_PASSWORD}
volumes:
dbdata_16: