Received "localhost refused to connect" in browser while all containers were running. Logs showed no error. #1234
-
First Check
Commit to Help
Example Code
DescriptionOpened browser and typed "http://localhost/". Received an error: This site can’t be reached. Localhost refused to connect. Operating SystemmacOS Operating System DetailsApple M3 Pro, MacOS = Sonoma v14.3.1 Python Version3.10 Additional Contextdocker-compose logs enclosed below frontend-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The problem is that when you run it with the context menu "compose up" command, it doesn't apply instructions from To solve this, run stack with Frontend: http://localhost:5173/ Backend: http://localhost:8000/docs Adminer: http://localhost:8080/ Traefik UI: http://localhost:8090/ MailCatcher: http://localhost:1080/ |
Beta Was this translation helpful? Give feedback.
The problem is that when you run it with the context menu "compose up" command, it doesn't apply instructions from
docker-compose.override.yml
and you containers ports are not mapped to the ports on host machine.To solve this, run stack with
docker compose watch
CLI command as it's described in docs and then access your services using their ports:Frontend: http://localhost:5173/
Backend: http://localhost:8000/docs
Adminer: http://localhost:8080/
Traefik UI: http://localhost:8090/
MailCatcher: http://localhost:1080/