-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is a separate Dockerfile necessary for Traefik #2822
Comments
What alternative do you suggest? |
Docker-compose can just have this for traefik service:
And Dockerfile can be removed for Traefik. |
Thank you. Regarding the acme.json file, I can't recall exactly why, but there an error was popping up if it wasn't created like that. But that was over 2 years ago (?). So it might not be relevant now. Regarding the Dockerfile, the docker image will still be created, so essentially what you propose will reduce the cookiecutter's files by 1. Yes, why not. Let's wait and see what the maintainers have to say. Note that you are missing the acme volume in your definition above. If you don't include it, then in the event that you recreate the container, a new certificate will be issued which is not desirable. |
@demestav Good catch. |
@browniebroke Ok makes sense. |
I am not able to understand the reason why a custom traefik Docerfile is being used.
The static and dynamic config files can be mounted as
ro
Read-Only in the container andacme.json
file is something that traefik creates on its own, so creating and setting0600
permissions also seem unnecessary.The whole file seems unnecessary to me. Am I missing something?
The text was updated successfully, but these errors were encountered: