stacktilserver

This commit is contained in:
Tord-Vincent Heggland
2026-04-06 23:12:00 +02:00
parent 3c3d8be5e4
commit 58efe131cd
2 changed files with 42 additions and 10 deletions

View File

@@ -1,10 +0,0 @@
services:
agent:
image: portainer/agent:latest
container_name: portainer_agent
restart: unless-stopped
ports:
- "${WG_IP}:9001:9001"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes

42
portainer-stack.yaml Normal file
View File

@@ -0,0 +1,42 @@
version: "3.8"
services:
agent:
image: portainer/agent:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
ports:
- target: 9001
published: 9001
protocol: tcp
mode: host
deploy:
mode: global
portainer:
image: portainer/portainer-ce:latest
command: --admin-password "$PORTAINER_ADMIN_PASSWORD_HASH"
volumes:
- portainer_data:/data
networks:
- agent_network
- proxy_net
deploy:
replicas: 1
placement:
constraints:
- node.labels.role == hp
networks:
agent_network:
driver: overlay
attachable: true
proxy_net:
external: true
volumes:
portainer_data: