-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
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: {}
Metadata
Metadata
Assignees
Labels
No labels
Activity
jamescarppe commentedon Jul 26, 2023
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 commentedon Aug 23, 2024
Yessss