10

I am not sure how to run the docker-compose equivalent of the following...

docker run -d -p 8080:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer --logo "https://www.docker.com/sites/all/themes/docker/assets/images/brand-full.svg"`

So far, I have the following, which I know works...

ui:   
   image: portainer/portainer
   container_name: ui
   restart: always
   volumes:
     - '/var/run/docker.sock:/var/run/docker.sock'
   expose:
     - 9000
   ports:
     - 8080:9000

Specifically, I can't figure out how the --logo flag translates to compose.

TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208
  • Have you seen any documentation for the --logo flag? Never seen it before. – david_i_smith Dec 20 '16 at 02:45
  • Documentation for the `--logo` flag is available here: https://portainer.readthedocs.io/en/stable/configuration.html#use-your-own-logo – Tony Dec 24 '16 at 21:31

1 Answers1

9

docker run does not mention any --logo parameter in its reference man page.

That means it could maybe represent a parameter pass to the default CMD of the container portainer/portainer being run.
That seems to be the case in issue 399:

You can use the CLI flags in the command field of your docker-compose file:

  ui:
    image: portainer/portainer
    command: portainer --logo http://mylogo.com -l owner=acme --templates http://mytemplates.com
    container_name: ui
    restart: always
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock' 

Tony points out in the comments to a docker-compose example

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • It is indeed a portainer flag and not a Docker flag, good answer here. Also we have an example of docker-compose file available at https://github.com/portainer/portainer-compose – Tony Dec 24 '16 at 03:24
  • @Tony Thank you. I have included your comment in the answer for more visibility. – VonC Dec 24 '16 at 04:37