-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
54 lines (49 loc) · 1.51 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
version: '3'
services:
postgres:
image: postgres:latest
restart: always
volumes:
- pg_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-d", "db_prod" ]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
hasura:
image: hasura/graphql-engine:latest.cli-migrations-v3
restart: always
depends_on:
postgres:
condition: service_healthy
ports:
- 4000:8080
volumes:
- ./hasura/metadata:/hasura-metadata
- ./hasura/migrations:/hasura-migrations
environment:
HASURA_GRAPHQL_METADATA_DIR: /hasura-metadata
HASURA_GRAPHQL_MIGRATIONS_DIR: /hasura-migrations
HASURA_GRAPHQL_DATABASE_URL: ${HASURA_DATABASE_URL}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_SECRET}
HASURA_GRAPHQL_JWT_SECRET: '{"type": "HS256", "key": "${HASURA_JWT_SECRET}", "audience": "${HASURA_JWT_AUDIENCE}", "issuer": "${HASURA_JWT_ISSUER}"}'
HASURA_GRAPHQL_ENABLE_CONSOLE: ${HASURA_ENABLE_CONSOLE}
HASURA_GRAPHQL_DEV_MODE: ${HASURA_GRAPHQL_DEV_MODE}
HASURA_GRAPHQL_PG_CONNECTIONS: 4
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
command:
- graphql-engine
- serve
z88dk:
image: ghcr.io/zxplay/zxcoder-api-z88dk
restart: always
zxbasic:
image: ghcr.io/zxplay/zxcoder-api-zxbasic
restart: always
volumes:
pg_data: