Docker Compose
The container layout of the master server
The master server runs as two containers managed by Docker Compose from /opt/openfesl.
Containers
| Container | Role |
|---|---|
openfesl-server-1 | The Python application serving the API and the website |
openfesl-database-1 | PostgreSQL with the persistent volume |
Start, stop, and update
cd /opt/openfesl
docker compose up -d
docker compose logs --tail 50 server
docker compose pull && docker compose up -dUpdating the code
The directory is a git repository. Pull the new revision, rebuild the image, and recreate only the application container so the database keeps running.
Take a database backup before every update that changes the schema.