Skip to content

Instantly share code, notes, and snippets.

@David-Lor
Created November 22, 2019 15:51
Show Gist options
  • Save David-Lor/1cca44acace66a447f919b26938482e0 to your computer and use it in GitHub Desktop.
Save David-Lor/1cca44acace66a447f919b26938482e0 to your computer and use it in GitHub Desktop.
Portainer - Docker Compose
version: '3'
services:
portainer:
# https://www.portainer.io/installation/
# https://portainer.readthedocs.io/en/stable/deployment.html
container_name: portainer
image: portainer/portainer
ports:
- 9000:9000
#- 9220:8000 # SSH for agent forward
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command: -H unix:///var/run/docker.sock
restart: unless-stopped
networks:
- frontend
networks:
frontend:
driver: bridge
internal: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment