-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (87 loc) · 2.4 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
89
90
91
92
93
version: '3.8'
services:
db:
image: postgres:15-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=pass
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
db-deploy:
build:
context: .
dockerfile: Dockerfile-db-deploy
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgresql://postgres:pass@db:5432/postgres?schema=public
DIRECT_URL: postgresql://postgres:pass@db:5432/postgres?schema=public
volumes:
- ./:/app:cached
- node_modules:/app/node_modules
graphql:
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
https-portal4466:
condition: service_started
command: ./wait-for-it.sh db:5432 --timeout=120 --strict -- /app/main
ports:
- "4466:4466"
- "4467:4467"
environment:
PRISMA_SCHEMA_FILE: ./prisma/schema.prisma
DATABASE_URL: postgresql://postgres:pass@db:5432/postgres?schema=public
DIRECT_URL: postgresql://postgres:pass@db:5432/postgres?schema=public
API_KEY: custometoken
LISTEN_ADDR: "0.0.0.0:4466"
ENABLE_MIGRATION: "false"
ENABLE_SLEEP_MODE: "false"
QUERY_ENGINE_LOG: "true"
QUERY_ENGINE_HOST_BIND: "0.0.0.0"
ENABLE_OPEN_TELEMETRY: "false"
OPEN_TELEMETRY_ENDPOINT: "otel:4317"
ENABLE_TELEMETRY_IN_RESPONSE: "true"
FMT_SQL: 1
PRODUCTION: "false"
https-portal4466:
depends_on:
db:
condition: service_healthy
image: steveltn/https-portal:1
ports:
- "443:443"
environment:
STAGE: local
DOMAINS: 'https-portal4466 -> http://graphql:4466'
volumes:
- ./ssl-certs:/var/lib/https-portal
dev:
image: node:18.3.0-bullseye-slim
working_dir: /app
entrypoint: /app/entrypoint.sh
command: tail -f /dev/null
environment:
DATABASE_URL: prisma://https-portal4466/?api_key=custometoken
NODE_TLS_REJECT_UNAUTHORIZED: "0"
DIRECT_URL: postgresql://postgres:pass@db:5432/postgres?schema=public
MIGRATE: "true"
volumes:
- ./:/app:cached
- node_modules_dev:/app/node_modules
depends_on:
db:
condition: service_healthy
db-deploy:
condition: service_completed_successfully
volumes:
node_modules:
node_modules_dev: