Skip to content

[Feature Request]: Add option to enable/disable pause endpoint #171

Closed

Description

@leosuncin

Add an option to enable the access to the Pause a container endpoint.

This endpoint is used by Sablier's docker provider when choosing the pause strategy.

name: sablier-example

services:
  traefik:
    image: traefik:v3.6.8
    depends_on:
      socket-proxy:
        condition: service_healthy
    environment:
      DOCKER_HOST: tcp://socket-proxy:2375
    ports:
      - '0.0.0.0:80:80'
      - '127.0.0.1:8080:8080'
    command:
      - --api.dashboard=true
      - --api.debug=true
      - --api.insecure=false
      - --entrypoints.traefik.address=:8080
      - --entrypoints.web.address=:80
      - --global.checkNewVersion=false
      - --global.sendAnonymousUsage=false
      - --log.format=json
      - --log.level=DEBUG
      - --ping.terminatingstatuscode=204
      - --providers.docker.allownonrunning=true
      - --providers.docker.exposedbydefault=false
      - --providers.docker.watch=true
      - --serverstransport.insecureskipverify=true
      - --experimental.plugins.sablier.moduleName=github.com/sablierapp/sablier-traefik-plugin
      - --experimental.plugins.sablier.version=v1.1.0
    labels:
      traefik.enable: true
      traefik.http.routers.traefik.rule: Host(`localhost`)
      traefik.http.routers.traefik.entrypoints: traefik
      traefik.http.routers.traefik.service: api@internal
  sablier:
    image: ghcr.io/sablierapp/sablier:1.11.1
    command:
      - start
      - --provider.name=docker
      - --provider.docker.strategy=pause
    environment:
      DOCKER_HOST: tcp://socket-proxy:2375
  socket-proxy:
    image:tecnativa/docker-socket-proxy:v0.4.2
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      ALLOW_START: 1
      ALLOW_STOP: 1
      ALLOW_RESTARTS: 1
      CONTAINERS: 1
      EVENTS: 1
      EXEC: 1
      INFO: 1
      IMAGES: 1
      NETWORKS: 1
      POST: 1
      SERVICES: 1
      SWARM: 1
      SYSTEM: 1
      VOLUMES: 1
    healthcheck:
      test: wget -qSO- --spider --tries=0 http://localhost:2375/version
      interval: 30s
      start_period: 20s
      retries: 2
      timeout: 5s
    user: 0:0
  whoami:
    image: traefik/whoami
    labels:
      traefik.enable: true
      traefik.http.routers.main.rule: Host(`localhost`)
      traefik.http.routers.main.entrypoints: web
      traefik.http.middlewares.conduit-main-load.plugin.sablier.sablierurl: http://sablier:10000
      traefik.http.middlewares.whoami-load.plugin.sablier.group: whoami
      traefik.http.middlewares.whoami-load.plugin.sablier.sessionduration: 1m
      traefik.http.middlewares.whoamiload.plugin.sablier.dynamic.displayname: Who Am I?
      traefik.http.middlewares.conduit-main-load.plugin.sablier.dynamic.showdetails: true
      sablier.enable: true
      sablier.group: whoami

Activity

  1. josep-tecnativa commented on Feb 23, 2026

    @josep-tecnativa
    Contributor

    Thanks for de suggestion!

    This sounds like a reasonable addition. If this feature is important for your use case, please feel free to open a Pull Request implementing it and we’d be happy to review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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