Last active
August 19, 2020 17:44
-
-
Save edardev/d586afdaa734db9a39eb52d9a6c9cd05 to your computer and use it in GitHub Desktop.
This file contains 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.7' | |
services: | |
postgres: | |
container_name: postgres_container | |
image: postgres:12 | |
restart: always | |
environment: | |
POSTGRES_DB: strapi | |
POSTGRES_USER: strapi | |
POSTGRES_PASSWORD: strapi | |
volumes: | |
- postgres-data:/var/lib/postgresql/data | |
ports: | |
- '5432:5432' | |
networks: | |
- myprivatenetwork | |
strapi: | |
container_name: strapi_container | |
image: strapi/strapi | |
restart: always | |
environment: | |
DATABASE_CLIENT: postgres | |
DATABASE_NAME: strapi | |
DATABASE_HOST: postgres | |
DATABASE_PORT: 5432 | |
DATABASE_USERNAME: strapi | |
DATABASE_PASSWORD: strapi | |
volumes: | |
- ./app:/srv/app | |
ports: | |
- '1337:1337' | |
networks: | |
- myprivatenetwork | |
depends_on: | |
- postgres | |
graphql-engine: | |
container_name: hasura_container | |
image: hasura/graphql-engine:v1.3.0 | |
ports: | |
- '8080:8080' | |
networks: | |
- myprivatenetwork | |
depends_on: | |
- 'postgres' | |
restart: always | |
environment: | |
HASURA_GRAPHQL_DATABASE_URL: postgres://strapi:strapi@postgres:5432/strapi | |
## enable the console served by server | |
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console | |
## enable debugging mode. It is recommended to disable this in production | |
HASURA_GRAPHQL_DEV_MODE: 'true' | |
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log | |
## uncomment next line to set an admin secret | |
HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey | |
pgadmin: | |
container_name: pgadmin_container | |
image: dpage/pgadmin4 | |
environment: | |
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@admin.com} | |
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-password} | |
volumes: | |
- pgadmin:/root/.pgadmin | |
ports: | |
- "${PGADMIN_PORT:-5050}:80" | |
networks: | |
- myprivatenetwork | |
restart: unless-stopped | |
networks: | |
sinergia: | |
driver: bridge | |
volumes: | |
postgres-data: | |
pgadmin: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment