-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
34 lines (32 loc) · 1.17 KB
/
docker-compose.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
version: '3'
# Example environment for data-api, useful for local development set up
# run docker-compose -p datopian-data-api up -d --build
services:
graphql-engine:
build:
context: environment/hasura/
dockerfile: Dockerfile
ports:
- '8080:8080'
depends_on:
- db
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://ckan_default:password@db:5432/datastore_default
## enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console
## enable debugging mode. It is recommended to disable this in production
HASURA_GRAPHQL_DEV_MODE: 'true'
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
## uncomment next line to set an admin secret
##HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
## uncomment next line to set an role that will be used for anauthenticated calls
##HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "anon"
db:
image: postgres
ports:
- '5555:5432'
environment:
POSTGRES_DB: datastore_default
POSTGRES_USER: ckan_default
POSTGRES_PASSWORD: password