Skip to content

Chore(Docker): Improve backend Dockerization for production - #229

Open
arnaudfnr wants to merge 16 commits into
mainfrom
arnaudfnr/improve_backend_dockerization
Open

arnaudfnr wants to merge 16 commits into
mainfrom
arnaudfnr/improve_backend_dockerization

Conversation

@arnaudfnr

@arnaudfnr arnaudfnr commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

What this PR does :

  • Update backend Dockerfile following the Docker Docs here : https://docs.docker.com/guides/django/
  • Unfortunately could not use DHI images but I used python trixie image, better than Alpine
  • Django backend server is now started using gunicorn, which is optimized for production use
  • Backend now uses UV to sync packages, was nicer to use with docker and closer to docker doc
  • Use a secure DJANGO SECRET KEY (defined in environment)
  • Data catalog, that contains parquet files, is now persisted as a volume to prevent data loss, and is generated during docker build, not when container is started, thus there is no delay between the deployment and the start to use the app.
  • Update coordo to 0.14.1 with a bugfix
  • Webapp (frontend) dockerfile now uses a develoment stage in main Dockerfile instead of two Dockerfile.dev for develoment builds

@arnaudfnr
arnaudfnr force-pushed the arnaudfnr/improve_backend_dockerization branch 2 times, most recently from a0d588d to 6d288a6 Compare October 19, 2026 06:56
@arnaudfnr arnaudfnr changed the title Arnaudfnr/improve backend dockerization Chore(Docker): Improve backend Dockerization for production Oct 19, 2026
@arnaudfnr
arnaudfnr force-pushed the arnaudfnr/improve_backend_dockerization branch 2 times, most recently from bf535aa to 73b321e Compare October 22, 2026 17:38
@arnaudfnr
arnaudfnr force-pushed the arnaudfnr/improve_backend_dockerization branch 2 times, most recently from 4999b8c to efd32d4 Compare October 29, 2026 11:21
@arnaudfnr
arnaudfnr force-pushed the arnaudfnr/improve_backend_dockerization branch from 462be8c to 3473d69 Compare October 29, 2026 12:37
@arnaudfnr
arnaudfnr marked this pull request as ready for review October 29, 2026 12:38
@arnaudfnr
arnaudfnr force-pushed the arnaudfnr/improve_backend_dockerization branch from f61a4ff to e9ee77e Compare October 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant