Feature Request: Support for labels on docker swarm #890

Closed
opened 2026-04-05 17:56:11 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @daddeldash on 9/18/2025

Hey guys,
as always, you are doing a very great job and the blueprints are a really amazing feature.
Would it be possible to run this with labels also on docker swarm nodes? I just was able to bring up my containers in a simple docker compose file, but when I tried to use the same file for a docker stack, nothing happened.

Here an example of what I used:

services:
  newt:
    image: fosrl/newt:latest
    environment:
      - PANGOLIN_ENDPOINT=${NEWT_ENDPOINT}
      - NEWT_ID=${NEWT_ID}
      - NEWT_SECRET=${NEWT_SECRET}
      - DOCKER_SOCKET=/var/run/docker.sock
    networks:
      - external
      - proxy
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
 
  app:
    image: nginx:latest
    labels:
      - pangolin.proxy-resources.nginx.name=nginx
      - pangolin.proxy-resources.nginx.protocol=http
      - pangolin.proxy-resources.nginx.full-domain=${BASE_DOMAIN}
      - pangolin.proxy-resources.nginx.ssl=true
      - pangolin.proxy-resources.nginx.enabled=true
      - pangolin.proxy-resources.nginx.targets[0].method=https
      - pangolin.proxy-resources.nginx.targets[0].hostname=app
      - pangolin.proxy-resources.nginx.targets[0].enabled=true
      - pangolin.proxy-resources.nginx.targets[0].path=/
      - pangolin.proxy-resources.nginx.targets[0].path-match=prefix
      - pangolin.proxy-resources.nginx.auth.sso-enabled=true
    networks:
      - proxy

networks:
  proxy:
    external: true
  external:

Starting this docker-compose.yml file with dockre compose up creates the resource and makes nginx reachable through pangolin. With docker stack deploy -c docker-compose.yml nginx, nothing happens. Not even if I add the labels to a deploy section.

*Originally created by @daddeldash on 9/18/2025* Hey guys, as always, you are doing a very great job and the blueprints are a really amazing feature. Would it be possible to run this with labels also on docker swarm nodes? I just was able to bring up my containers in a simple docker compose file, but when I tried to use the same file for a docker stack, nothing happened. Here an example of what I used: ```-- services: newt: image: fosrl/newt:latest environment: - PANGOLIN_ENDPOINT=${NEWT_ENDPOINT} - NEWT_ID=${NEWT_ID} - NEWT_SECRET=${NEWT_SECRET} - DOCKER_SOCKET=/var/run/docker.sock networks: - external - proxy volumes: - /var/run/docker.sock:/var/run/docker.sock:ro app: image: nginx:latest labels: - pangolin.proxy-resources.nginx.name=nginx - pangolin.proxy-resources.nginx.protocol=http - pangolin.proxy-resources.nginx.full-domain=${BASE_DOMAIN} - pangolin.proxy-resources.nginx.ssl=true - pangolin.proxy-resources.nginx.enabled=true - pangolin.proxy-resources.nginx.targets[0].method=https - pangolin.proxy-resources.nginx.targets[0].hostname=app - pangolin.proxy-resources.nginx.targets[0].enabled=true - pangolin.proxy-resources.nginx.targets[0].path=/ - pangolin.proxy-resources.nginx.targets[0].path-match=prefix - pangolin.proxy-resources.nginx.auth.sso-enabled=true networks: - proxy networks: proxy: external: true external: ``` Starting this docker-compose.yml file with `dockre compose up` creates the resource and makes nginx reachable through pangolin. With `docker stack deploy -c docker-compose.yml nginx`, nothing happens. Not even if I add the labels to a `deploy` section.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#890