2023-12-17 22:05:36 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
agent:
|
|
|
|
image: portainer/agent:2.19.4
|
|
|
|
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.19.4
|
|
|
|
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
|
|
|
ports:
|
|
|
|
- "9443:9443"
|
|
|
|
- "9000:9000"
|
|
|
|
- "8000:8000"
|
|
|
|
volumes:
|
2023-12-17 22:31:42 +00:00
|
|
|
- type: bind
|
|
|
|
source: /mnt/Portainer
|
|
|
|
target: /data
|
2023-12-17 22:05:36 +00:00
|
|
|
networks:
|
|
|
|
- agent_network
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == manager]
|
|
|
|
|
|
|
|
networks:
|
|
|
|
agent_network:
|
|
|
|
driver: overlay
|
|
|
|
attachable: true
|