-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (53 loc) · 1.55 KB
/
docker-compose.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:
nginx:
image: ghcr.io/8gen/powix-nginx:$MODE
build:
context: ./
dockerfile: ./apps/nginx/Dockerfile
environment:
HOST: ${DOMAIN}
ports:
- '127.0.0.1:10002:80'
depends_on:
- auth
- graphql-engine
postgres:
image: postgres:12
restart: always
env_file:
- .env
ports:
- '15432:5432'
environment:
POSTGRES_DB: hasura
volumes:
- /opt/powix/db/:/var/lib/postgresql/data
auth:
image: ghcr.io/8gen/powix-auth:$MODE
build:
context: ./
dockerfile: ./apps/hasura-auth-server/Dockerfile
environment:
NODE_ENV: production
PRIVATE_KEY: ${PRIVATE_KEY}
HOST: 0.0.0.0
PORT: 3000
graphql-engine:
image: hasura/graphql-engine:v2.22.1
ports:
- 8080
depends_on:
- "auth"
- "postgres"
restart: always
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/hasura
PG_DATABASE_URL: postgres://postgres:$POSTGRES_PASSWORD@postgres:5432/hasura
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
HASURA_GRAPHQL_DEV_MODE: "false"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_JWT_SECRET}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_SECRET}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
command: /bin/sh -c 'if [ "$MODE" = "dev" ]; then export HASURA_GRAPHQL_DEV_MODE=true; fi && graphql-engine serve'