I'm new to Docker and recently ran into a problem. I had my WordPress and Immich containers up and running perfectly for several months using my local IP and port to access them. However, now they seem to be running fine when I check with 'docker ps' in the terminal, but I can't reach them via my IP and port anymore. I've confirmed that my IP matches my private IP in the configuration file. Any suggestions on how to resolve this?
5 Answers
Are you trying to access it directly from the machine running the Docker? If so, try visiting http://localhost:xxxxx in your browser, replacing 'xxxxx' with the correct host port. If that connects, everything should be fine. You can also run 'docker inspect ' to get details about the port mapping.
First off, see if you can ping the IP of your machine. If that's working, check whether the port is open by using the telnet command. Don't forget to check the logs of the containers to look for any errors.
Could you share the Docker Compose file or command you used to set up those containers? That might help diagnose the issue.
It seems like there might be a network overlapping issue going on. Double-check your network settings.

I've checked that, but it doesn't work either. The logs say 'failed to connect to localhost port 2283,' indicating there might be a port issue.