Created
May 20, 2020 20:13
-
-
Save jacobaraujo7/5543a33f5e966850b1bb9b40fa279f1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.6' | |
| services: | |
| postgres: | |
| image: postgis/postgis | |
| restart: always | |
| volumes: | |
| - db_data:/var/lib/postgresql/data | |
| environment: | |
| POSTGRES_PASSWORD: postgrespassword | |
| graphql-engine: | |
| image: hasura/graphql-engine:v1.2.1 | |
| depends_on: | |
| - "postgres" | |
| restart: always | |
| environment: | |
| # database url to connect | |
| HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@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 admin secret key | |
| HASURA_GRAPHQL_ADMIN_SECRET: pupz-brasil | |
| HASURA_GRAPHQL_JWT_SECRET: '{"type":"RS512", "jwk_url": "https://www.googleapis.com/service_accounts/v1/jwk/[email protected]","audience": ["project-268518", "projectpartner-1a2eb"]}' | |
| command: | |
| - graphql-engine | |
| - serve | |
| postgres-qa: | |
| image: postgis/postgis | |
| restart: always | |
| volumes: | |
| - db_data_qa:/var/lib/postgresql/data | |
| environment: | |
| POSTGRES_PASSWORD: postgrespassword | |
| graphql-engine-qa: | |
| image: hasura/graphql-engine:v1.2.1 | |
| depends_on: | |
| - "postgres-qa" | |
| restart: always | |
| environment: | |
| HASURA_GRAPHQL_DATABASE_URL: postgres://postgres-qa:postgrespassword@postgres:5432/postgres | |
| HASURA_GRAPHQL_ENABLE_CONSOLE: "true" | |
| HASURA_GRAPHQL_ADMIN_SECRET: pupz-brasil | |
| HASURA_GRAPHQL_JWT_SECRET: '{"type":"RS512", "jwk_url": "https://www.googleapis.com/service_accounts/v1/jwk/[email protected]","audience": ["project-268518", "projectpartner-1a2eb"]}' | |
| command: | |
| - graphql-engine | |
| - serve | |
| caddy: | |
| image: abiosoft/caddy:0.11.0 | |
| depends_on: | |
| - "graphql-engine" | |
| - "graphql-engine-qa" | |
| restart: always | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: | |
| - ./Caddyfile:/etc/Caddyfile | |
| - caddy_certs:/root/.caddy | |
| volumes: | |
| db_data: | |
| db_data_qa: | |
| caddy_certs: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment