Skip to content

Traefik blocks access from Android Emulator #570

@deakjahn

Description

@deakjahn

OS type
Linux/Windows/macOS

Drupal version
10 / 11 (all)

Codebase
Built-in vanilla Drupal

Describe the bug
Is there any real reason for the inclusion of Traefik? It doesn't seem to bring any real benefit and it blocks some use cases. I try to reach the dockered Drupal from an Android app I develop and debug in Android Studio and, after a day of debugging, it turned out to be blocked by Traefik. I removed it from the compose file and everything immediately returned to normal.

Just to describe (and to leave a trail for other people struggling with the same issue in the future), the emulator runs in a virtual network that maps 10.0.2.2 to the localhost of the host machine. As I set up my .env to run Docker4Drupal on 0.0.0.0:80, it should be available as localhost. It is available as such from the browser of the host machine all right but not via 10.0.2.2 from the emulator, apparently because of name resolution problems. Without Traefik, it is available, everything works perfectly.

So, while it's not directly a bug per se in other use cases, it looks like unnecessary burden to me without any real benefit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions