Skip to content

Commit 2e21447

Browse files
Stefan WaltherStefan Walther
Stefan Walther
authored and
Stefan Walther
committed
feat: add portainer to base stack file
1 parent 0199ed5 commit 2e21447

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/docker-stack.yml

+12
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ services:
9494
labels:
9595
- "UI=Swarm Visualizer"
9696

97+
portainer:
98+
image: portainer/portainer
99+
command: -H unix:///var/run/docker.sock
100+
ports:
101+
- "9000:9000"
102+
volumes:
103+
- /portainer-data:/data
104+
- /var/run/docker.sock:/var/run/docker.sock
105+
deploy:
106+
placement:
107+
constraints: [node.role == manager]
108+
97109
networks:
98110
frontend:
99111
backend:

0 commit comments

Comments
 (0)