diff --git a/install-manifests/docker-compose-https/Caddyfile b/install-manifests/docker-compose-https/Caddyfile index b842b37f..93c9229a 100644 --- a/install-manifests/docker-compose-https/Caddyfile +++ b/install-manifests/docker-compose-https/Caddyfile @@ -1,5 +1,6 @@ - { - proxy / graphql-engine:8080 { - websocket - } +# replace :80 with your domain name to get automatic https via LetsEncrypt +:80 { + proxy / graphql-engine:8080 { + websocket + } } diff --git a/install-manifests/docker-compose-https/docker-compose.yaml b/install-manifests/docker-compose-https/docker-compose.yaml index 8889e3fd..9723578d 100644 --- a/install-manifests/docker-compose-https/docker-compose.yaml +++ b/install-manifests/docker-compose-https/docker-compose.yaml @@ -1,7 +1,7 @@ version: '3.6' services: postgres: - image: postgres + image: postgres:10.5 restart: always volumes: - db_data:/var/lib/postgresql/data @@ -11,14 +11,17 @@ services: - "postgres" restart: always environment: - HASURA_GRAPHQL_ACCESS_KEY: mysecretaccesskey + # database url to connect HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:@postgres:5432/postgres + # enable the console served by server + HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set "false" to disable console + ## uncomment next line to set an access key + # HASURA_GRAPHQL_ACCESS_KEY: mysecretaccesskey command: - graphql-engine - serve - - --enable-console caddy: - image: abiosoft/caddy + image: abiosoft/caddy:0.11.0 depends_on: - "graphql-engine" restart: always