Skip to content

Instantly share code, notes, and snippets.

@LevZaplatin
Last active September 16, 2019 09:15
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 LevZaplatin/d058f447a9f78f7228c6d518b5a58b82 to your computer and use it in GitHub Desktop.
Save LevZaplatin/d058f447a9f78f7228c6d518b5a58b82 to your computer and use it in GitHub Desktop.
version: '3.2'
services:
agent:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
# LOG_LEVEL: debug
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- test-ctm-net
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
portainer:
image: portainer/portainer
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9000:9000"
volumes:
- portainer_data:/data
networks:
- test-ctm-net
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
networks:
test-ctm-net:
driver: overlay
attachable: true
external: true
volumes:
portainer_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment