homelab/proxmox/services/vaultwarden.yml
Samantha Atkins ca16c1d815 Add vaultwarden swarm service for pve-tools node
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 22:43:56 -04:00

41 lines
891 B
YAML

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}