2023-11-22 08:26:10 +01:00
|
|
|
services:
|
|
|
|
vaultwarden:
|
2024-03-02 12:13:30 +01:00
|
|
|
image: docker.io/vaultwarden/server:alpine
|
2023-11-22 08:26:10 +01:00
|
|
|
container_name: vaultwarden
|
|
|
|
restart: always
|
2024-02-17 19:01:04 +01:00
|
|
|
user: {{ users['vaultwarden'] }}:{{ users['vaultwarden'] }}
|
2023-11-22 08:26:10 +01:00
|
|
|
environment:
|
2024-02-17 19:01:04 +01:00
|
|
|
- DOMAIN=https://vw.{{ domain }}
|
2023-11-22 08:26:10 +01:00
|
|
|
- SIGNUPS_ALLOWED=false
|
2024-03-16 13:50:04 +01:00
|
|
|
- ADMIN_TOKEN=${ADMIN_TOKEN}
|
|
|
|
- SMTP_HOST=mail.{{ domain }}
|
|
|
|
- SMTP_FROM=vaultwarden@{{ domain }}
|
|
|
|
- SMTP_PORT={{ ports['mailserver_smtps'] }}
|
|
|
|
- SMTP_SECURITY=force_tls
|
|
|
|
- SMTP_USERNAME={{ vaultwarden_secrets['smtp_username'] }}
|
|
|
|
- SMTP_PASSWORD=${SMTP_PASSWORD}
|
2023-11-22 08:26:10 +01:00
|
|
|
ports:
|
2024-02-18 22:19:55 +01:00
|
|
|
- 127.0.0.1:{{ ports['vaultwarden'] }}:80
|
2023-11-22 08:26:10 +01:00
|
|
|
volumes:
|
2024-02-17 19:01:04 +01:00
|
|
|
- {{ volumes['vaultwarden_datadir' ] }}:/data
|