I should add this to the mix... I'm running pi-hole on a separate server.
Notifications
Clear all
Kubernetes and Containers
15
Posts
3
Users
5
Reactions
519
Views
Feb 20, 2024 12:33 pm
Feb 21, 2024 7:38 pm
I'm getting this after running docker-compose up -d
Recreating nginx ... Recreating traefik ... error Recreating nginx ย ... error ork's subnets ERROR: for nginxย Cannot start service nginx: Invalid address 172.19.0.11: It does not belong to any of this network's subnets ERROR: for traefik2ย Cannot start service traefik2: Invalid address 172.19.0.10: It does not belong to any of this network's subnets ERROR: for nginxย Cannot start service nginx: Invalid address 172.19.0.11: It does not belong to any of this network's subnets ERROR: Encountered errors while bringing up the project.
Feb 22, 2024 9:04 am
Hi
@dirtyharrywk. Unfortunately the Traefik docs are a confusing and disorganized mess (well, in my opinion!)
Most importantly, your http block should not be a child of providers. It needs to be unindented so it's at the root.
Your dashboard rule needs tweaking:
http: routers: dashboard: rule: Host(`traefik.MY_DOMAIN.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
https redirection can be accomplished using this recipe instead of a middleware:
entryPoints: web: address: :80 http: redirections: entryPoint: to: websecure scheme: https websecure: address: :443
I hope this solves your problem, or at least gets you further along.
Feb 22, 2024 6:24 pm
Why the nginx container?ย I thought I was using traefik, not nginx.ย Again this makes no sense at all.
Page 2 / 2
Prev