life-towers/docker-compose.dev.yml

31 lines
971 B
YAML

# Dev / e2e compose. Uses an ephemeral anonymous volume so each `up` starts
# with a clean SQLite database — ideal for Playwright runs that expect a
# fresh state.
#
# Usage:
# docker compose -f docker-compose.dev.yml up --build -d
# # ... run tests against http://localhost:8000 ...
# docker compose -f docker-compose.dev.yml down -v
services:
life-towers:
build:
context: .
args:
# Strip the PWA service worker from this image so `up --build` always
# serves the freshly-built FE assets instead of a stale, SW-cached app
# shell. See the SERVICE_WORKER arg in the Dockerfile.
SERVICE_WORKER: disabled
image: life-towers:dev
ports:
- "8000:8000"
volumes:
- /data
environment:
LIFE_TOWERS_ALLOWED_ORIGIN: ""
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/api/v1/health"]
interval: 2s
timeout: 3s
retries: 15
start_period: 5s