forked from nhost/hasura-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-example.yaml
56 lines (56 loc) · 1.66 KB
/
docker-compose-example.yaml
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
53
54
55
56
version: '3.6'
services:
postgres:
image: postgres
restart: always
volumes:
- ./docker/data/db:/var/lib/postgresql/data
- ./docker/initdb.d:/docker-entrypoint-initdb.d:ro
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-secretpgpassword}
ports:
- '5432:5432'
graphql-engine:
image: hasura/graphql-engine:v2.2.0
depends_on:
- postgres
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-secretpgpassword}@postgres:5432/postgres
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
HASURA_GRAPHQL_LOG_LEVEL: debug
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
ports:
- '8080:8080'
hasura-auth:
image: nhost/hasura-auth:latest
depends_on:
- postgres
- graphql-engine
env_file:
- .env
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:-secretpgpassword}@postgres:5432/postgres
HASURA_GRAPHQL_GRAPHQL_URL: http://graphql-engine:8080/v1/graphql
AUTH_SMTP_HOST: mailhog
AUTH_SMTP_PORT: 1025
ports:
- '4000:4000'
volumes:
- ./email-templates:/app/email-templates
mailhog:
image: mailhog/mailhog
environment:
SMTP_HOST: mailhog
SMTP_PORT: 1025
SMTP_PASS: ${AUTH_SMTP_PASS}
SMTP_USER: ${AUTH_SMTP_USER}
SMTP_SECURE: '${AUTH_SMTP_SECURE}'
SMTP_SENDER: ${AUTH_SMTP_SENDER}
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
volumes:
- ./docker/data/mailhog:/maildir