Portainer compose file

This commit is contained in:
2025-11-28 08:38:51 +08:00
parent ed916fd53b
commit 6dcb51cb93
2 changed files with 56 additions and 1 deletions

View File

@@ -7,10 +7,18 @@ services:
- PUID=2000
- PGID=2000
- TZ=Asia/Taipei
deploy:
labels:
- homepage.group=Storage
- homepage.name=Obsidian
- homepage.icon=sh-obsidian-light
- homepage.href=https://note.dua.casa/
- homepage.description=Obsidian is a note-taking app that lets you create, link, and organize your notes on your device, with hundreds of plugins and themes to customize your workflow.
volumes:
- /mnt/docker-storage/obsidian:/config
- /mnt:/mnt
ports:
- 8112:3000
- 8113:3001
shm_size: "1gb"
restart: unless-stopped
restart: unless-stopped

View File

@@ -0,0 +1,47 @@
version: '3.2'
services:
agent:
image: portainer/agent:lts
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:lts
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9443:9443"
- "9000:9000"
- "8000:8000"
volumes:
- type: bind
source: /mnt/docker-storage/portainer
target: /data
networks:
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
labels:
- homepage.group=Management
- homepage.name=Portainer
- homepage.icon=portainer
- homepage.href=https://portainer.dua.casa/
- homepage.description=Portainer is a universal container management platform.
- homepage.widget.type=portainer
- homepage.widget.url=https://cluster.localdomain:9443
- homepage.widget.env=1
- homepage.widget.key=ptr_2Paj0QMqSY3QE4xGMdxnsncsw8qIBBnflLNtxRZz1a8=
networks:
agent_network:
driver: overlay
attachable: true