first commit from PC

This commit is contained in:
2025-07-20 13:28:12 +10:00
parent a2971879f0
commit a27c86ffe9
42 changed files with 1551 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
version: '3.2'
services:
agent:
image: portainer/agent
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
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9443:9443"
- "9000:9000"
- "8000:8000"
volumes:
- portainer-data:/data:rw
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- agent_network
deploy:
mode: replicated
placement:
constraints: [node.role == manager]
networks:
agent_network:
driver: overlay
attachable: true
volumes:
portainer-data:
driver: local
driver_opts:
type: nfs
device: ":/srv/docker/volumes/portainer"
o: "addr=192.168.8.231,rw,nfsvers=4,async"