Timeline for Specify container IP as extra_hosts in Docker Compose
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 23, 2023 at 7:56 | comment | added | Jeff Lockhart |
I don't know why it doesn't work by default, but WordPress's health check fails the loopback check with a port 443 connection refused. This wouldn't be coming from the external IP port 443 where https traffic routes through Traefik as expected. The WordPress docker container doesn't listen on port 443 though, only port 80. If I add the external IP address for mysite.com as an extra_hosts , then the loopback check fails with a connection timeout. Either using the Traefik container's IP as an extra_hosts or the alias solution resolves the issue with the loopback check finally succeeding.
|
|
Aug 21, 2023 at 10:04 | comment | added | Chris Becke |
Why do you need to do this? mysite.com is going to resolve to the swarms external ip anyway, which is where traefik is listening anyway.
|
|
Aug 1, 2023 at 0:12 | vote | accept | Jeff Lockhart | ||
Aug 1, 2023 at 0:12 | answer | added | Jeff Lockhart | timeline score: 1 | |
S Jul 29, 2023 at 3:33 | review | First questions | |||
Jul 29, 2023 at 4:08 | |||||
S Jul 29, 2023 at 3:33 | history | asked | Jeff Lockhart | CC BY-SA 4.0 |