Skip to content

Instantly share code, notes, and snippets.

@mageddo
Created July 24, 2020 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mageddo/5efeea786e747f6c57606d559dbbd93b to your computer and use it in GitHub Desktop.
Save mageddo/5efeea786e747f6c57606d559dbbd93b to your computer and use it in GitHub Desktop.
version: '3'
services:
agent:
image: portainer/agent:1.3.0
environment:
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
# LOG_LEVEL: debug
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- mageddo
deploy:
mode: global
restart_policy:
condition: any
delay: 1m
window: 5s
portainer:
image: portainer/portainer:1.21.0
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9000:9000"
volumes:
- /var/lib/mageddo/data/portainer:/data
networks:
- mageddo
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
- node.hostname == manager-01
networks:
mageddo:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment