Add Vaultwarden
This commit is contained in:
parent
712496d8a0
commit
319e0d38ca
2 changed files with 45 additions and 0 deletions
16
etc/systemd/system/vaultwarden-dc.service
Normal file
16
etc/systemd/system/vaultwarden-dc.service
Normal 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
|
||||
|
29
opt/vaultwarden/docker-compose.yml
Normal file
29
opt/vaultwarden/docker-compose.yml
Normal 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:
|
Loading…
Reference in a new issue