-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.65 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.6'
# Single docker-compose.yml for the entire project for a more consistent single source of truth.
# For ports that will collide with dev, a '1' is prefixed the the original port number.
# Development Note: Docker containers are immutable docker image,
# if you updated any of the content within the docker images you need to rebuild the docker image.
# You can do so via this command docker-compose up --build
services:
localstack:
image: localstack/localstack:0.11.4
ports:
- "4566:4566"
- "8888:8888"
environment:
- SERVICES=s3
- PORT_WEB_UI=8888
- DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=accessKeyId
- AWS_SECRET_ACCESS_KEY=secretAccessKey
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- "11025:1025"
- "18025:8025"
postgres:
image: postgres:11.8
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: sadeaf_app
sadeaf-hasura:
build: sadeaf-hasura
ports:
- "8080:8080"
restart: unless-stopped
depends_on:
- postgres
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/sadeaf_app
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
# ADMIN_SECRET is required if JWT_SECRET and DEV_MODE is provided.
HASURA_GRAPHQL_ADMIN_SECRET: sadeaf-hasura-console
HASURA_GRAPHQL_AUTH_HOOK: http://host.docker.internal:4000/_hasura/jwt/authorize
HASURA_GRAPHQL_AUTH_HOOK_MODE: GET
WEB_HOOK_URL: http://host.docker.internal:4000/_hasura/webhook