portainer-docs icon indicating copy to clipboard operation
portainer-docs copied to clipboard

Document using compose for both ce and premium

Open sbe-arg opened this issue 2 years ago • 2 comments

Something on the lines of:

version: '3.9'

name: 'services'

services:

  watchtower:
    container_name: watchtower
    hostname: watchtower
    image: docker.io/containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: unless-stopped

  portainer:
    container_name: portainer
    hostname: portainer
    image: docker.io/portainer/portainer-ce:latest
    command: --tlsskipverify --admin-password "$$2y$$05$$YhkVSP6tIoP2xVByx.8SdOjd9MJrcR/U9w6rv51GuSpUHkJvEsW9i"
    # docker run --rm httpd:alpine htpasswd -nbB admin supersecurepassword | cut -d ":" -f 2 # comment each $ with another $
    ports:
      - 127.0.0.1:9443:9443
      - 127.0.0.1:8000:8000
    volumes:
      - portainer_data:/data
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
    restart: unless-stopped

volumes:
  portainer_data: {}

sbe-arg avatar Jul 25 '23 22:07 sbe-arg

Assuming this is for Docker Standalone - for Swarm we already provide compose files.

In most cases for Standalone, users seem to prefer a docker run command. However, we have been discussing internally whether we provide compose files for standalone as well - no decision as of yet but I'll keep this issue in mind around it.

jamescarppe avatar Jul 26 '23 04:07 jamescarppe

Yessss

ffaa3dd avatar Aug 23 '24 18:08 ffaa3dd