Accessing Tailscale from a Docker Container which uses whitelist container as proxy

Hi there,

Not sure if this is more of a docker question, but we are using Tailscale for service A and we have our service B staging app in a container which uses this docker image GitHub - Tecnativa/docker-whitelist: A socat service to whitelist network connections to whitelist endpoints since we want our staging to reach only whitelisted endpoints.

We whitelisted the tailscale endpoint but accessing the Service A from inside the container of Service B gives timeout. This doesnt happen in production so we know its related to this “whitelist” container network interface.

At service B, our staging webserver has the following in networks in the docker-compose.yaml:

        networks:
            default:
            globalwhitelist_shared:
            inverseproxy_shared:

Defined at the end as:

networks:
    default:
        internal: true
        driver_opts:
            encrypted: 1

    globalwhitelist_shared:
        external: true

    inverseproxy_shared:
        external: true

    public:

Any help would be appreciated :slight_smile: