Files
TenerifeProp/docker-compose.yml
TenerifeProp Dev 462ab16488 wip: progress updates - CSS extraction done, rate limiting started
- CSS extraction completed (Issue #5) 
- Docker compose updated with mounted volumes for development
- Rate limiting middleware started (Issue #6) - tests failing
- Database recreated with proper schema

Note: Rate limiting test needs fix - router already built error
2026-04-05 12:24:18 +01:00

24 lines
687 B
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
# Mount source files for development (no rebuild needed)
- ./src:/app/src
- ./public:/app/public
- ./data:/app/data
# Don't mount node_modules - use container's
environment:
- NODE_ENV=development
- PORT=8080
- GITEA_API_URL=https://git.softuniq.eu/api/v1
restart: unless-stopped
healthcheck:
test: ["CMD", "bun", "-e", "fetch('http://localhost:8080/api/settings').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s