Skip to content

Document using compose for both ce and premium  #268

@sbe-arg

Description

@sbe-arg

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: {}

Activity

jamescarppe

jamescarppe commented on Jul 26, 2023

@jamescarppe
Member

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.

ffaa3dd

ffaa3dd commented on Aug 23, 2024

@ffaa3dd

Yessss

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

      Document using compose for both ce and premium · Issue #268 · portainer/portainer-docs