- 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
24 lines
687 B
YAML
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 |