install manifests: use caddy v2 for https setup (#4823)

This commit is contained in:
Sander Hahn 2020-06-16 07:09:46 +02:00 committed by GitHub
parent 65920fb77b
commit 5117084755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,4 @@
# replace :80 with your domain name to get automatic https via LetsEncrypt
:80 {
proxy / graphql-engine:8080 {
websocket
}
reverse_proxy graphql-engine:8080
}

View File

@ -22,10 +22,10 @@ services:
## uncomment next line to set an admin secret
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
command:
- graphql-engine
- graphql-engine
- serve
caddy:
image: abiosoft/caddy:0.11.0
image: caddy/caddy
depends_on:
- "graphql-engine"
restart: always
@ -33,7 +33,7 @@ services:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/Caddyfile
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_certs:/root/.caddy
volumes:
db_data: