docker-compose/vaultwarden/docker-compose.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

2024-05-05 14:00:09 +02:00
---
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
environment:
2024-05-12 21:15:47 +02:00
TZ: 'Europe/Berlin'
DOMAIN: 'https:///domain.tld'
2024-05-12 21:15:47 +02:00
# Disable signups
SIGNUPS_ALLOWED: 'false'
# Disable invitations
INVITATIONS_ALLOWED: 'false'
# Enable admin page and create token via a temporary container
# docker run --rm -it vaultwarden/server /vaultwarden hash
ADMIN_TOKEN: 'TOKEN'
# Cache time-to-live for successfully obtained icons, in seconds (0 is "forever")
ICON_CACHE_TTL: 0
ICON_SERVICE: 'internal'
DISABLE_ICON_DOWNLOAD: 'true'
2024-05-12 21:15:47 +02:00
# Set log settings for fail2ban
LOG_LEVEL: 'info'
EXTENDED_LOGGING: 'true'
LOG_FILE: '/data/vaultwarden.log'
2024-05-23 00:54:05 +02:00
# SMTP settings
SMTP_HOST: 'mx.example.com'
SMTP_PORT: '465'
SMTP_SECURITY: 'force_tls'
SMTP_FROM: 'no-reply@example.com'
SMTP_USERNAME: 'no-reply@example.com'
SMTP_PASSWORD: 'PASSWORD'
2024-05-08 23:01:18 +02:00
volumes:
- ./volumes/data:/data
ports:
2024-05-12 21:15:47 +02:00
- "127.0.0.1:8081:80"
2024-05-05 14:00:09 +02:00
restart: unless-stopped