mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-24 00:49:39 +08:00
add installation manifests (#432)
This commit is contained in:
committed by
GitHub
parent
acd62c3bf8
commit
5929ec5be3
33
install-manifests/docker-compose-https/docker-compose.yaml
Normal file
33
install-manifests/docker-compose-https/docker-compose.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
version: '3.6'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
restart: always
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v1.0.0-alpha18
|
||||
depends_on:
|
||||
- "postgres"
|
||||
restart: always
|
||||
environment:
|
||||
HASURA_GRAPHQL_ACCESS_KEY: mysecretaccesskey
|
||||
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:@postgres:5432/postgres
|
||||
command:
|
||||
- graphql-engine
|
||||
- serve
|
||||
- --enable-console
|
||||
caddy:
|
||||
image: abiosoft/caddy
|
||||
depends_on:
|
||||
- "graphql-engine"
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/Caddyfile
|
||||
- caddy_certs:/root/.caddy
|
||||
volumes:
|
||||
db_data:
|
||||
caddy_certs:
|
||||
Reference in New Issue
Block a user