portainer/portainer-compose

Hiding portainer containers in portainer-compose

evsasha opened this issue · 2 comments

How hiding in portainer-compose?

Labels in docker-compose.yml like:

    labels:
      owner: "acme"

don't work.

You'll need to use the -l flags according to the docs here: https://portainer.readthedocs.io/en/latest/configuration.html#hiding-specific-containers

So update the docker-compose.yml file with the following content for the portainer definition:

  portainer:
    image: portainer/portainer
    container_name: "portainer-app"
    command: --templates http://templates/templates.json -d /data -l owner=portainer
    networks:
      - local
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/portainer/data:/data
    labels:
      owner: "portainer"

Thank you it's work!