Created
February 1, 2021 18:15
-
-
Save movibe/1549da8b90612803a313bd2b43b3827b to your computer and use it in GitHub Desktop.
Docker compose hasura next
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: mdillon/postgis | |
env_file: ./backend/.env | |
ports: | |
- '5432:5432' | |
restart: always | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
graphql-engine: | |
# image: hasura/graphql-engine:v1.4.0-alpha.1.cli-migrations-v2 | |
image: hasura/graphql-engine:v1.4.0-alpha.1 | |
env_file: ./backend/.env | |
ports: | |
- '8080:8080' | |
depends_on: | |
- 'postgres' | |
restart: always | |
command: | |
- graphql-engine | |
- serve | |
- --enable-console | |
volumes: | |
- ./backend/migrations:/hasura-migrations | |
- ./backend/metadata:/hasura-metadata | |
localstack: | |
image: localstack/localstack-full | |
ports: | |
- '4566:4566' | |
- '8085:8080' | |
environment: | |
# Only start a subset of services required for testing. | |
- SERVICES=s3,sns,sqs,apigateway,lambda,dynamodb,dynamodbstreams,cloudformation | |
- DEBUG=1 | |
- PORT_WEB_UI=8080 | |
- DOCKER_HOST=unix:///var/run/docker.sock | |
- DATA_DIR=/tmp/localstack/data | |
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE | |
- AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY | |
- AWS_DEFAULT_REGION=us-east-1 | |
- AWS_DEFAULT_OUTPUT=json | |
volumes: | |
- 'aws_data:/tmp/localstack' | |
- '/var/run/docker.sock:/var/run/docker.sock' | |
minio: | |
image: minio/minio | |
restart: always | |
environment: | |
S3_BUCKET: hasura-backend-plus | |
MINIO_ACCESS_KEY: minio_access_key | |
MINIO_SECRET_KEY: '${S3_SECRET_ACCESS_KEY:?S3_SECRET_ACCESS_KEY}' ## min 8 character | |
entrypoint: sh | |
command: "-c 'mkdir -p /export/hasura-backend-plus && /usr/bin/minio server /export'" | |
ports: | |
- 9000:9000 | |
volumes: | |
- 'minio_data:/data' | |
mailhog: | |
image: mailhog/mailhog | |
ports: | |
- '1025:1025' | |
- '8025:8025' | |
volumes: | |
db_data: | |
aws_data: | |
minio_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment