-
-
Notifications
You must be signed in to change notification settings - Fork 234
Expand file tree
/
Copy pathcompose.e2e.yaml
More file actions
39 lines (36 loc) · 1.21 KB
/
compose.e2e.yaml
File metadata and controls
39 lines (36 loc) · 1.21 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
services:
mock-openlibrary:
image: node:22-alpine
working_dir: /app
volumes:
- ./e2e:/app
command: sh -c "apk add --no-cache openssl && cd mock-server && node server.js"
networks:
default:
aliases:
- openlibrary.org
- covers.openlibrary.org
- gutendex.com
php:
environment:
# Disable HTTP cache during E2E tests: Souin would cache empty API responses
# during service startup (before fixtures are loaded) and serve them during tests
CADDY_SERVER_CACHE: ""
volumes:
- ./e2e/mock-server/cert.pem:/usr/local/share/ca-certificates/mock-server.crt:ro
depends_on:
- mock-openlibrary
pwa:
environment:
NODE_TLS_REJECT_UNAUTHORIZED: "0"
depends_on:
- mock-openlibrary
keycloak:
command: start-dev --import-realm
environment:
KC_HTTPS_CERTIFICATE_FILE: /opt/keycloak/certs/tls.crt
KC_HTTPS_CERTIFICATE_KEY_FILE: /opt/keycloak/certs/tls.key
volumes:
- ./helm/api-platform/keycloak/certs/tls.crt:/opt/keycloak/certs/tls.crt:ro
- ./helm/api-platform/keycloak/certs/tls.pem:/opt/keycloak/certs/tls.key:ro
- ./helm/api-platform/keycloak/config:/opt/keycloak/data/import