docker-archive / dockercloud-haproxy

HAproxy image that autoreconfigures itself when used in Docker Cloud
https://cloud.docker.com/
651 stars 187 forks source link

Swarm service deploy mode = global is not supported #240

Open blop opened 6 years ago

blop commented 6 years ago

When using service in swarm, dockercloud/haproxy fails to link backend for services deployed globally.

    serviceA:
        deploy:
            mode: global

Workaround is to switch to replicated deploy mode (which is the default).

    serviceA:
        deploy:
            mode: replicated
            replicas: 3

It seems the containers created for globally deployed services are named differently, with a 0 as the second part of the name instead of the node id.

This should be fixed, and/or a warning should be added in the documentation if not.