38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
services:
|
|
web:
|
|
environment:
|
|
SESSION_SECRET: "test-session-secret-32chars!xxxY"
|
|
ADMIN_USERNAME: testadmin
|
|
ADMIN_PASSWORD: "TestPassword2026!"
|
|
BASE_URL: http://localhost:3000
|
|
NEXTAUTH_URL: http://localhost:3000
|
|
caddy:
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
# Lightweight echo server reachable by Caddy as "echo-server:8080".
|
|
# Returns a fixed body so tests can assert the proxy routed the request.
|
|
echo-server:
|
|
image: hashicorp/http-echo
|
|
command: ["-text=echo-ok", "-listen=:8080"]
|
|
networks:
|
|
- caddy-network
|
|
# Second echo server for load-balancing tests.
|
|
# Returns a different body so tests can distinguish which upstream served the request.
|
|
echo-server-2:
|
|
image: hashicorp/http-echo
|
|
command: ["-text=echo-server-2", "-listen=:8080"]
|
|
networks:
|
|
- caddy-network
|
|
volumes:
|
|
caddy-manager-data:
|
|
name: caddy-manager-data-test
|
|
caddy-data:
|
|
name: caddy-data-test
|
|
caddy-config:
|
|
name: caddy-config-test
|
|
caddy-logs:
|
|
name: caddy-logs-test
|
|
geoip-data:
|
|
name: geoip-data-test
|