UNOFFICAL/UNSUPPORTED: Docker Compose with Traefik and nginx #9936
fbelectronics
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Warning
This is NOT a solution supported by the developers, and if you have issues with it, please DO NOT ask them for support.
Ask for support on this discussion and I or someone else may be able to help.
On my server I had already traefik running as a reverse proxy, so I didn't want to use the bundled Caddy as such.
Since Caddy was also serving the static files it has been replaced with nginx. Please find the compose file for that setup below.
Changes/Tweaks to the official one:
.env
to set the hostname for treafik calledINVENTREE_HOSTNAME
.COMPOSE_PROJECT_NAME
in the .env file and can deploy again.traefik
in my case. Make sure you have the traefik option--providers.docker.network=traefik
set accordingly, to tell traefik which IP addresses to use for routing. Otherwise it might end up wanting to route to theinventree
network IP address, which is not accessible.compose.yaml
.env
nginx.conf
Beta Was this translation helpful? Give feedback.
All reactions