Created
September 29, 2022 13:19
-
-
Save bdelphin/24601716844c4336d84578442b203f95 to your computer and use it in GitHub Desktop.
Slightly modified version of https://downloads.portainer.io/portainer-agent-stack.yml - port redirection 9000:9000 replaced by 8443:9000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
agent: | |
image: portainer/agent:2.11.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.11.1 | |
command: -H tcp://tasks.agent:9001 --tlsskipverify | |
ports: | |
- "9443:9443" | |
- "8443:9000" | |
- "8000:8000" | |
volumes: | |
- portainer_data:/data | |
networks: | |
- agent_network | |
deploy: | |
mode: replicated | |
replicas: 1 | |
placement: | |
constraints: [node.role == manager] | |
networks: | |
agent_network: | |
driver: overlay | |
attachable: true | |
volumes: | |
portainer_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment