- Introduced Caddy server for serving frontend and API backend. - Implemented admin dashboard for creating, editing, and managing events. - Replaced session-based authentication with token-based OAuth using Gitea. - Added support for drag-and-drop event reordering in the admin interface. - Standardized Fastify route validation with JSON schemas. - Enhanced authentication flow with cookie-based state and secure token storage. - Reworked backend routes to handle publishing, event management, and content updates. - Updated `Dockerfile.caddy` and `fly.toml` for deployment configuration.
38 lines
718 B
YAML
38 lines
718 B
YAML
services:
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
- BACKEND_URL=http://proxy:4321
|
|
depends_on:
|
|
- backend
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
env_file:
|
|
- ./backend/.env.local
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=8080
|
|
- DATABASE_PATH=/app/data/gallus_cms.db
|
|
- GIT_WORKSPACE_DIR=/app/workspace
|
|
volumes:
|
|
- backend_data:/app/data
|
|
- backend_workspace:/app/workspace
|
|
|
|
proxy:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.caddy
|
|
depends_on:
|
|
- frontend
|
|
- backend
|
|
ports:
|
|
- "4321:80"
|
|
|
|
volumes:
|
|
backend_data:
|
|
backend_workspace: |