super-productivity/docker-compose.e2e.fast.yaml
Johannes Millan 5e79162ca5 fix(ci): fix WebDAV config path for hacdias/webdav v5
The hacdias/webdav:latest image updated to v5 which no longer
auto-discovers config at /config.yml. Mount to /etc/webdav/config.yaml
(an auto-discovered path) and pin image to v5 to prevent future breakage.
2026-02-16 11:07:52 +01:00

50 lines
1.2 KiB
YAML

# Docker Compose for fast local E2E tests
# Uses volume mounts instead of copying source/installing deps
# Requires: npm install to be run locally first
services:
# Angular development server for E2E tests
app:
build:
context: .
dockerfile: Dockerfile.e2e.dev.fast
ports:
- '${APP_PORT:-4242}:${APP_PORT:-4242}'
environment:
- APP_PORT=${APP_PORT:-4242}
volumes:
- .:/app
- /app/.angular # Exclude .angular cache (use container's)
healthcheck:
test: ['CMD', 'curl', '-sf', 'http://localhost:${APP_PORT:-4242}']
interval: 10s
timeout: 5s
retries: 30
start_period: 120s
# WebDAV sync server (for sync tests)
webdav:
image: hacdias/webdav:v5
ports:
- '${WEBDAV_PORT:-2345}:${WEBDAV_PORT:-2345}'
environment:
- PORT=${WEBDAV_PORT:-2345}
volumes:
- ./webdav.yaml:/etc/webdav/config.yaml:ro
- webdav_data:/data
healthcheck:
test:
[
'CMD',
'wget',
'--quiet',
'--tries=1',
'--spider',
'http://localhost:${WEBDAV_PORT:-2345}/',
]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
volumes:
webdav_data: