Compare commits

..

2 Commits

Author SHA1 Message Date
Tord-Vincent Heggland
58efe131cd stacktilserver 2026-04-06 23:12:00 +02:00
Tord-Vincent Heggland
3c3d8be5e4 beforeswarm 2026-04-06 23:07:30 +02:00
2 changed files with 42 additions and 22 deletions

View File

@@ -1,22 +0,0 @@
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify
restart: unless-stopped
volumes:
- ./data:/data
networks:
- proxy_net
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
networks:
proxy_net:
external: true

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: