-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
54 lines (48 loc) · 1.56 KB
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
version: '3.5'
services:
chaingraph-postgres:
container_name: chaingraph-postgres
image: postgres:latest
volumes:
- chaingraph-pgdata:/var/lib/postgresql/data_chaingraph
ports:
- '5432:5432'
environment:
PGPORT: 5432
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: chaingraph
DB_NAME: chaingraph
DB_USER: user
DB_PASSWORD: pass
chaingraph-hasura:
container_name: chaingraph-hasura
build: ./
image: chaingraph-hasura:local
ports:
- "${HASURA_GRAPHQL_SERVER_PORT}:${HASURA_GRAPHQL_SERVER_PORT}"
restart: always
environment:
# https://hasura.io/docs/1.0/graphql/core/deployment/graphql-engine-flags/reference.html
HASURA_GRAPHQL_DATABASE_URL: ${HASURA_GRAPHQL_DATABASE_URL}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_SERVER_PORT: ${HASURA_GRAPHQL_SERVER_PORT}
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLE_CONSOLE: ${HASURA_GRAPHQL_ENABLE_CONSOLE}
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_CORS_DOMAIN: "*"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "anonymous"
HASURA_GRAPHQL_ENABLED_APIS: ${HASURA_GRAPHQL_ENABLED_APIS}
# HASURA_GRAPHQL_AUTH_HOOK: ${HASURA_GRAPHQL_AUTH_HOOK}
# HASURA_GRAPHQL_AUTH_HOOK_MODE: POST
command:
- graphql-engine
- serve
depends_on:
- chaingraph-postgres
volumes:
chaingraph-pgdata:
networks:
default:
name: chaingraph
# driver: bridge