Docker Deployment
This guide covers deploying the School Clubs application using Docker.
Prerequisites
- Docker and Docker Compose installed
- Domain name configured (e.g.,
se.unilu.dev) - Traefik reverse proxy running
Quick Start
-
Clone the repository:
-
Configure environment variables:
-
Start the application:
-
Access the application:
- Main app:
https://se.unilu.dev - Documentation:
https://docs.se.unilu.dev
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
SECRET_KEY |
Flask secret key | only-set-server-side |
DATABASE_URI |
Database connection string | sqlite:////data/data.db |
Traefik Labels
The application uses these Traefik labels for routing:
- Main app:
Host(\se.unilu.dev`)` - Documentation:
Host(\docs.se.unilu.dev`)`
Both use automatic HTTPS with Let's Encrypt.
Database Persistence
SQLite database is stored in a Docker volume:
Updating
Changes pushed to the dev branch automatically deploy via GitHub Actions.
Manual update: