2018-09-13 12:33:13 +03:00
|
|
|
version: '3.6'
|
|
|
|
services:
|
|
|
|
postgres:
|
2018-10-17 08:26:14 +03:00
|
|
|
image: postgres:10.5
|
2018-09-13 12:33:13 +03:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
|
|
|
graphql-engine:
|
2019-05-16 14:31:50 +03:00
|
|
|
image: hasura/graphql-engine:v1.0.0-beta.1
|
2018-09-13 12:33:13 +03:00
|
|
|
depends_on:
|
|
|
|
- "postgres"
|
|
|
|
restart: always
|
|
|
|
environment:
|
2018-10-17 08:26:14 +03:00
|
|
|
# database url to connect
|
2018-09-13 12:33:13 +03:00
|
|
|
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:@postgres:5432/postgres
|
2018-10-17 08:26:14 +03:00
|
|
|
# enable the console served by server
|
|
|
|
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set "false" to disable console
|
2019-02-14 12:37:47 +03:00
|
|
|
## uncomment next line to set an admin secret key
|
|
|
|
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
|
2018-09-13 12:33:13 +03:00
|
|
|
command:
|
|
|
|
- graphql-engine
|
|
|
|
- serve
|
|
|
|
caddy:
|
2018-10-17 08:26:14 +03:00
|
|
|
image: abiosoft/caddy:0.11.0
|
2018-09-13 12:33:13 +03:00
|
|
|
depends_on:
|
|
|
|
- "graphql-engine"
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- ./Caddyfile:/etc/Caddyfile
|
|
|
|
- caddy_certs:/root/.caddy
|
|
|
|
volumes:
|
|
|
|
db_data:
|
|
|
|
caddy_certs:
|