Skip to content

Feat: add Ferriskey into docker compose#10

Merged
jorisvilardell merged 3 commits intomainfrom
feat/docker-compose-ferriskey
Feb 9, 2026
Merged

Feat: add Ferriskey into docker compose#10
jorisvilardell merged 3 commits intomainfrom
feat/docker-compose-ferriskey

Conversation

@jorisvilardell
Copy link
Collaborator

This pull request introduces several important updates to the development environment, authentication logic, and Docker setup for the project. The main changes include improved multi-service orchestration with Docker Compose, enhanced database initialization, and adjustments to authentication models to better handle optional usernames.

Environment and Docker Configuration

  • Added .env.example with clear environment variable sections for database, authentication, server, logging, and CORS, providing a template for local development and deployment.
  • Refactored docker-compose.yaml to orchestrate multiple services (Aether, Ferriskey API, Ferriskey webapp), share a PostgreSQL instance, and ensure proper initialization and dependency handling. This includes new migration services and health checks for robust startup. [1] [2] [3]
  • Introduced docker/postgres/init-databases.sh to automatically create the ferriskey database and grant privileges on container startup, simplifying setup for local and CI environments.

Authentication Model Improvements

  • Changed preferred_username in Claims to be optional (Option<String>) for improved compatibility with authentication providers; updated related tests to reflect this change. [1] [2] [3] [4] [5]
  • Updated Identity conversion logic to use preferred_username if available, otherwise fallback to the subject ID, ensuring robust user identification; updated tests accordingly. [1] [2] [3]

Use mapping style for env vars and add pgdata volume. Add
aether/ferriskey migration jobs, ferriskey-api and ferriskey-webapp
services, and adjust healthchecks and service dependencies. Add
docker/postgres/init-databases.sh to create the ferriskey database.
@jorisvilardell jorisvilardell added enhancement New feature or request good first issue Good for newcomers and removed good first issue Good for newcomers labels Feb 9, 2026
@jorisvilardell jorisvilardell merged commit 5f1e672 into main Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant