Replies: 3 comments 3 replies
-
You need to add a service and a router. Can you post your config? |
Beta Was this translation helpful? Give feedback.
-
I have made the changes you suggested however I am still getting the following error in the logs:
Do I need to change my production.yml file or traefik Dockerfile to point it to the correct service? I appreciate your efforts to help, thank you. |
Beta Was this translation helpful? Give feedback.
-
In case anyone comes across this in the future, I ended up making a .traefik environment file in my .envs/.production folder, referencing that in the production.yml file, then putting the domain name in there and using that environment variable in the traefik.yml file. This allowed me to set the differing domains on both the staging and production servers using the env files, and kept my traefik.yml file the same for both systems. Thanks to @foarsitter for taking the time to give me suggestions for this. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
First off, thank you to the contributors who keep this repository going! It's amazing.
I have a production server running a cookiecutter-django project using docker/traefik. I want to set up a staging environment on a separate domain to test things, however it doesn't seem to be as simple as adding the new domain Host information into the same places as the production domain name.
I also know very little about traefik, so struggling to understand where to look to try and get this working.
Would appreciate any suggestions anyone has!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions