portainer / portainer-compose

Compose setup for Portainer
http://portainer.io
681 stars 303 forks source link

Hiding portainer containers in portainer-compose #5

Closed evsasha closed 7 years ago

evsasha commented 7 years ago

How hiding in portainer-compose?

Labels in docker-compose.yml like:

    labels:
      owner: "acme"

don't work.

deviantony commented 7 years ago

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"
evsasha commented 7 years ago

Thank you it's work!