This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
forked from successible/cleanslate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (84 loc) · 2.9 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
database:
image: postgres:15
restart: always
container_name: database
ports:
- '${POSTGRES_PORT:-5432}:5432'
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- database:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
graphql-server:
image: hasura/graphql-engine:latest.cli-migrations-v3
restart: always
container_name: graphql-server
ports:
- '${HASURA_PORT:-8080}:8080'
environment:
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_CORS_DOMAIN: https://${NEXT_PUBLIC_HASURA_DOMAIN}
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres
HASURA_GRAPHQL_DEV_MODE: false
HASURA_GRAPHQL_ENABLE_CONSOLE: true
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
volumes:
- ./migrations:/hasura-migrations
- ./metadata:/hasura-metadata
depends_on:
database:
condition: service_healthy
extra_hosts:
- 'host.docker.internal:host-gateway'
authentication-server:
image: ghcr.io/successible/cleanslate/authentication-server:latest
build:
context: .
dockerfile: Dockerfile.server
pull_policy: ${PULL_POLICY:-always}
restart: always
container_name: authentication-server
ports:
- '${AUTHENTICATION_SERVER_PORT:-3001}:3001'
environment:
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
JWT_SIGNING_SECRET: ${JWT_SIGNING_SECRET}
NEXT_PUBLIC_USE_FIREBASE: ${NEXT_PUBLIC_USE_FIREBASE:-false}
depends_on:
- database
- graphql-server
extra_hosts:
- 'host.docker.internal:host-gateway'
client:
image: ghcr.io/successible/cleanslate/client:latest
build:
context: .
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_FIREBASE_CONFIG=${NEXT_PUBLIC_FIREBASE_CONFIG:-{}}
- NEXT_PUBLIC_LEGAL_LINK=${NEXT_PUBLIC_LEGAL_LINK:-no}
- NEXT_PUBLIC_LOGIN_WITH_APPLE=${NEXT_PUBLIC_LOGIN_WITH_APPLE:-no}
- NEXT_PUBLIC_LOGIN_WITH_FACEBOOK=${NEXT_PUBLIC_LOGIN_WITH_FACEBOOK:-no}
- NEXT_PUBLIC_LOGIN_WITH_GITHUB=${NEXT_PUBLIC_LOGIN_WITH_GITHUB:-no}
- NEXT_PUBLIC_LOGIN_WITH_GOOGLE=${NEXT_PUBLIC_LOGIN_WITH_GOOGLE:-no}
- NEXT_PUBLIC_REACT_SENTRY_DSN=${NEXT_PUBLIC_REACT_SENTRY_DSN:-no}
- NEXT_PUBLIC_USE_FIREBASE=${NEXT_PUBLIC_USE_FIREBASE:-false}
- NEXT_PUBLIC_VERSION=${NEXT_PUBLIC_VERSION}
pull_policy: ${PULL_POLICY:-always}
restart: always
container_name: client
ports:
- '${CLIENT_PORT:-3000}:3000'
depends_on:
- database
- graphql-server
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
database: