Add vaultwarden swarm service for pve-tools node
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9fd085420a
commit
ca16c1d815
1 changed files with 41 additions and 0 deletions
41
proxmox/services/vaultwarden.yml
Normal file
41
proxmox/services/vaultwarden.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
version: '3.8'
|
||||
|
||||
# Deploy with:
|
||||
# docker stack deploy -c vaultwarden.yml vaultwarden
|
||||
#
|
||||
# Runs on: pve-tools
|
||||
# Self-hosted Bitwarden-compatible password manager.
|
||||
# Uses default SQLite backend; data persisted in a named volume.
|
||||
# Web vault exposed on port 8222.
|
||||
|
||||
services:
|
||||
vaultwarden:
|
||||
image: vaultwarden/server:latest
|
||||
environment:
|
||||
SIGNUPS_ALLOWED: "false"
|
||||
INVITATIONS_ALLOWED: "true"
|
||||
SHOW_PASSWORD_HINT: "false"
|
||||
ROCKET_PORT: 8222
|
||||
ports:
|
||||
- "8222:8222"
|
||||
volumes:
|
||||
- vaultwarden_data:/data
|
||||
networks:
|
||||
- overlay-net
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == pve-tools
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
|
||||
volumes:
|
||||
vaultwarden_data:
|
||||
|
||||
networks:
|
||||
overlay-net:
|
||||
external: true
|
||||
name: ${OVERLAY_NETWORK:-homelab-net}
|
||||
Loading…
Reference in a new issue