-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.test.yaml
More file actions
61 lines (59 loc) · 1.79 KB
/
Copy pathcompose.test.yaml
File metadata and controls
61 lines (59 loc) · 1.79 KB
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
# End-to-end test stack: Postgres plus pdbq only. The gqlgate under test runs
# in-process from the Go test, pointed at the published pdbq port, so the test
# exercises the code in the working tree rather than a built image.
#
# make test-e2e
services:
db:
image: postgis/postgis:16-3.4
environment:
POSTGRES_USER: pdbq
POSTGRES_PASSWORD: pdbq
POSTGRES_DB: pdbq_test
volumes:
- ./db/init:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pdbq"]
interval: 2s
timeout: 2s
retries: 15
# pdbq with its default plugin set, which includes simple-names
# (users, user, updateUser).
pdbq:
image: ghcr.io/suprbdev/pdbq:latest
depends_on:
db:
condition: service_healthy
ports:
- "8090:8080"
environment:
PDBQ_DATABASE_URL: postgres://pdbq:pdbq@db:5432/pdbq_test
PDBQ_RLS_ENABLED: "false"
PDBQ_ERRORS_DETAIL: dev
healthcheck:
# The distroless image has no shell or curl, so the orchestrator cannot
# probe it; the test waits for readiness itself.
test: ["CMD", "/pdbq", "--version"]
interval: 2s
timeout: 2s
retries: 15
# The same database exposed with the verbose default inflector
# (allUsers, userById, updateUserById), so the suite can prove both produce
# an identical REST surface.
pdbq-verbose:
image: ghcr.io/suprbdev/pdbq:latest
depends_on:
db:
condition: service_healthy
ports:
- "8091:8080"
environment:
PDBQ_DATABASE_URL: postgres://pdbq:pdbq@db:5432/pdbq_test
PDBQ_RLS_ENABLED: "false"
PDBQ_ERRORS_DETAIL: dev
PDBQ_PLUGINS_DISABLED: simple-names
healthcheck:
test: ["CMD", "/pdbq", "--version"]
interval: 2s
timeout: 2s
retries: 15