mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
feat: vaultwarden setup
This commit is contained in:
17
vaultwarden/env.example
Normal file
17
vaultwarden/env.example
Normal file
@@ -0,0 +1,17 @@
|
||||
# base config
|
||||
DOMAIN=https://vw.example.com
|
||||
SIGNUPS_ALLOWED=false
|
||||
INVITATIONS_ALLOWED=false
|
||||
|
||||
# smtp config
|
||||
SMTP_HOST=smtp.example.com
|
||||
SMTP_FROM=mail@example.com
|
||||
SMTP_FROM_NAME=Vaultwarden
|
||||
SMTP_USERNAME=username
|
||||
SMTP_PASSWORD=
|
||||
SMTP_TIMEOUT=15
|
||||
SMTP_SECURITY=force_tls
|
||||
SMTP_PORT=465
|
||||
|
||||
# rocket http configuration
|
||||
ROCKET_PORT=7777
|
||||
22
vaultwarden/vaultwarden.container
Normal file
22
vaultwarden/vaultwarden.container
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=VaultWarden Container
|
||||
|
||||
[Container]
|
||||
ContainerName=vaultwarden
|
||||
Image=ghcr.io/dani-garcia/vaultwarden:alpine
|
||||
|
||||
# Enable auto-update container
|
||||
AutoUpdate=registry
|
||||
EnvironmentFile=./.env
|
||||
|
||||
Network=host
|
||||
|
||||
Volume=%h/podman/vaultwarden:/data
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=%h/.config/containers/systemd/vaultwarden/.env
|
||||
Restart=always
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user