mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
update https manifests for docker compose (#781)
This commit is contained in:
parent
3f34849db1
commit
ec1474b74f
@ -1,5 +1,6 @@
|
||||
<your-domain.com> {
|
||||
proxy / graphql-engine:8080 {
|
||||
websocket
|
||||
}
|
||||
# replace :80 with your domain name to get automatic https via LetsEncrypt
|
||||
:80 {
|
||||
proxy / graphql-engine:8080 {
|
||||
websocket
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user