Add Vaultwarden

This commit is contained in:
BatchAccount 1001 2023-02-04 01:59:07 +01:00
parent 712496d8a0
commit 319e0d38ca
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,16 @@
[Unit]
Description=Vaultwarden (Compose Service)
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/opt/vaultwarden
ExecStart=/usr/bin/docker-compose --project-name vaultwarden up
ExecStop=/usr/bin/docker-compose --project-name vaultwarden down
TimeoutStartSec=0
Restart=on-failure
StartLimitBurst=3
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,29 @@
version: "3.0"
services:
vaultwarden:
image: vaultwarden/server:1.27.0-alpine
restart: always
environment:
ADMIN_TOKEN: ${ADMIN_TOKEN}
DOMAIN: https://vault.jilits.se
WEBSOCKET_ENABLED: "true" # For notifications
PASSWORD_HINTS_ALLOWED: "false"
SHOW_PASSWORD_HINT: "false"
SIGNUPS_DOMAINS_WHITELIST: jilits.se
SMTP_HOST: mail.jilits.se
SMTP_PORT: 465
SMTP_SECURITY: force_tls
SMTP_USERNAME: ${SMTP_USER}
SMTP_PASSWORD: ${SMTP_PASS}
HELO_NAME: vault.jilits.se
SMTP_FROM_NAME: Valtwarden
SMTP_FROM: vault@jilits.se
volumes:
- data:/data
ports:
- "8010:80"
- "3012:3012"
volumes:
data: