Skip to content

Instantly share code, notes, and snippets.

@mki
Created April 19, 2023 14:29
Show Gist options
  • Select an option

  • Save mki/2c81a11d5ba4682f400361b8532ba70d to your computer and use it in GitHub Desktop.

Select an option

Save mki/2c81a11d5ba4682f400361b8532ba70d to your computer and use it in GitHub Desktop.
version: '3'
services:
agent:
image: portainer/agent:2.17.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
portainer:
image: portainer/portainer-ce:2.17.1
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9000:9000"
volumes:
- portainer_data:/data
networks:
- vector
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
networks:
agent_network:
driver: overlay
attachable: true
vector:
external: true
volumes:
portainer_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment