- Rename TASKPLANER_DATA_DIR to DATA_DIR (avoid adapter-node envPrefix conflict) - Add TASKPLANER_ORIGIN for CSRF protection in docker-compose.yml - Add automatic database schema initialization on startup - Add Playwright E2E tests for Docker deployment verification - Update .env.example with correct variable names Fixes container restart loop and 403 errors on form submission. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
323 B
YAML
17 lines
323 B
YAML
services:
|
|
taskplaner:
|
|
build: .
|
|
container_name: taskplaner
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- taskplaner_data:/app/data
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATA_DIR=/app/data
|
|
- TASKPLANER_ORIGIN=http://localhost:3000
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
taskplaner_data:
|