Localhost with Flutter web not working with docker

I just added --web-hostname to end of the docker-compose.yml command and it works. But instead of localhost:8080 now is

So the docker-compose.yml looks like this:

version: '3.1'
        build: .
        restart: always
            - "8080:8080"
        command: >
            sh -c "flutter pub get && flutter run -d web-server --web-port 8080 --web-hostname"

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top