sad
This commit is contained in:
parent
a77cdb7912
commit
fdbffcaf2d
2 changed files with 65 additions and 0 deletions
42
portainer-agent-stack.yml
Normal file
42
portainer-agent-stack.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
services:
|
||||||
|
agent:
|
||||||
|
image: portainer/agent:2.21.5
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||||
|
networks:
|
||||||
|
- netgrimoire
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
placement:
|
||||||
|
constraints: [node.platform.os == linux]
|
||||||
|
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer-ce:2.21.5
|
||||||
|
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
||||||
|
ports:
|
||||||
|
- "9443:9443"
|
||||||
|
- "9000:9000"
|
||||||
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- - /DockerVol/portainer:/data
|
||||||
|
networks:
|
||||||
|
- netgrimoire
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- homepage.group=Management
|
||||||
|
- homepage.name=Portainer
|
||||||
|
- homepage.icon=portainer.png
|
||||||
|
- homepage.href=http://docker.netgrimoire.com
|
||||||
|
- homepage.description=Docker Manager
|
||||||
|
- kuma.prt.http.name="Portainer"
|
||||||
|
- kuma.prt.http.url=http://portainer:9000
|
||||||
|
- caddy=docker.netgrimoire.com
|
||||||
|
# - caddy.import=authentik
|
||||||
|
- caddy.reverse_proxy="{{upstreams 9000}}"
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.hostname == nas
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
23
portainer.yaml
Normal file
23
portainer.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer-ce
|
||||||
|
container_name: portainer
|
||||||
|
hostname: portainer
|
||||||
|
# command: -H unix:///var/run/docker.sock
|
||||||
|
# command:
|
||||||
|
# --no-auth
|
||||||
|
networks:
|
||||||
|
- netgrimoire
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 9000:9000
|
||||||
|
- 8000:8000
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /DockerVol/portainer:/data
|
||||||
|
environment:
|
||||||
|
- TZ=America/Chicago
|
||||||
|
- PGID=999
|
||||||
|
- PUID=1001
|
||||||
Loading…
Add table
Add a link
Reference in a new issue