Skip to content

Comments

Use traefik and standard nginx#529

Merged
nicokant merged 1 commit intomainfrom
traefik
Aug 5, 2025
Merged

Use traefik and standard nginx#529
nicokant merged 1 commit intomainfrom
traefik

Conversation

@frafra
Copy link
Collaborator

@frafra frafra commented Aug 4, 2025

This is how the compose file could look like with traefik.

@nicokant
Copy link
Collaborator

nicokant commented Aug 4, 2025

actually django serves static files and media in dev, nginx is required just for production

@frafra
Copy link
Collaborator Author

frafra commented Aug 4, 2025

I was a bit puzzled actually from seeing the static container only in dev :)

@nicokant
Copy link
Collaborator

nicokant commented Aug 4, 2025

Why two different containers for static and media?

@frafra
Copy link
Collaborator Author

frafra commented Aug 4, 2025

Just because there were two containers already defined :) You just need one if you have a volume or a bindmount containing both folders.

@nicokant
Copy link
Collaborator

nicokant commented Aug 4, 2025

Yes, but one container is for dev and one for prod in the old code

@frafra
Copy link
Collaborator Author

frafra commented Aug 5, 2025

Yes, but one container is for dev and one for prod in the old code

Exactly as the new code :) I have not changed that, since it was out of scope. I can still do it, of course :)

@frafra frafra marked this pull request as ready for review August 5, 2025 07:50
@nicokant nicokant added this pull request to the merge queue Aug 5, 2025
Merged via the queue into main with commit d95f3ff Aug 5, 2025
12 checks passed
@nicokant nicokant deleted the traefik branch August 5, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants