Skip to content

Instantly share code, notes, and snippets.

@jmcarbo
Last active January 16, 2018 19:27
Show Gist options
  • Save jmcarbo/498ed8bab95bab40eef7716d25b29e7c to your computer and use it in GitHub Desktop.
Save jmcarbo/498ed8bab95bab40eef7716d25b29e7c to your computer and use it in GitHub Desktop.
portainer
version: '3.4'
services:
portainer:
image: portainer/portainer
command: -H unix:///var/run/docker.sock -t https://raw.githubusercontent.com/jmcarbo/templates/master/templates.json --no-auth
ports:
- "9000"
networks:
- portainer-net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer:/data
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
volumes:
portainer:
networks:
portainer-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment