forked from OnurGvnc/prisma-data-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (71 loc) · 1.88 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
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
tcpdump:
image: nicolaka/netshoot
depends_on:
- graphql
command: tcpdump -i eth0 -w /data/graphql.pcap
network_mode: service:graphql
volumes:
- $PWD/data:/data
graphql:
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
ports:
- "4466:4466"
- "4467:4467"
environment:
PRISMA_SCHEMA_FILE: ./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_SLEEP_MODE: "false"
QUERY_ENGINE_LOG: "true"
QUERY_ENGINE_HOST_BIND: "0.0.0.0"
ENABLE_OPEN_TELEMETRY: "true"
OPEN_TELEMETRY_ENDPOINT: ""
ENABLE_TELEMETRY_IN_RESPONSE: "true"
PRODUCTION: "false"
https-portal4466:
depends_on:
graphql:
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
test:
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
volumes:
- ./:/app:cached
- node_modules_test:/app/node_modules
volumes:
node_modules:
node_modules_test: