2020-01-21 00:23:06 +00:00
---
2021-05-15 14:24:34 +00:00
title: vaultwarden_docker
2020-01-21 00:23:06 +00:00
type: docs
---
2022-03-03 20:39:12 +00:00
[![Source Code ](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white )](https://gitea.rknet.org/ansible/xoxys.vaultwarden_docker) [![Build Status ](https://img.shields.io/drone/build/ansible/xoxys.vaultwarden_docker?logo=drone&server=https%3A%2F%2Fdrone.rknet.org )](https://drone.rknet.org/ansible/xoxys.vaultwarden_docker) [![License: MIT ](https://img.shields.io/badge/license-MIT-blue.svg )](https://gitea.rknet.org/ansible/xoxys.vaultwarden_docker/src/branch/master/LICENSE)
2020-01-22 14:41:11 +00:00
2021-05-15 14:24:34 +00:00
Role to setup a [Vaultwarden ](https://github.com/dani-garcia/vaultwarden ) password safe. Vaultwarden is a community Bitwarden API server implementation written in Rust.
2020-01-21 00:23:06 +00:00
2022-03-03 20:39:12 +00:00
- [Default Variables ](#default-variables )
- [vaultwarden_admin_token ](#vaultwarden_admin_token )
- [vaultwarden_authenticator_disable_time_drift ](#vaultwarden_authenticator_disable_time_drift )
- [vaultwarden_base_url ](#vaultwarden_base_url )
- [vaultwarden_cap_add ](#vaultwarden_cap_add )
- [vaultwarden_cap_drop ](#vaultwarden_cap_drop )
- [vaultwarden_container_name ](#vaultwarden_container_name )
- [vaultwarden_cpu_shares ](#vaultwarden_cpu_shares )
- [vaultwarden_db_name ](#vaultwarden_db_name )
- [vaultwarden_db_password ](#vaultwarden_db_password )
- [vaultwarden_db_port ](#vaultwarden_db_port )
- [vaultwarden_db_server ](#vaultwarden_db_server )
- [vaultwarden_db_ssl_mode ](#vaultwarden_db_ssl_mode )
- [vaultwarden_db_ssl_rootcert ](#vaultwarden_db_ssl_rootcert )
- [vaultwarden_db_user ](#vaultwarden_db_user )
- [vaultwarden_disable_2fa_remember ](#vaultwarden_disable_2fa_remember )
- [vaultwarden_disable_icon_download ](#vaultwarden_disable_icon_download )
- [vaultwarden_exposed_ports ](#vaultwarden_exposed_ports )
- [vaultwarden_extended_logging ](#vaultwarden_extended_logging )
- [vaultwarden_extra_hosts ](#vaultwarden_extra_hosts )
- [vaultwarden_healthcheck ](#vaultwarden_healthcheck )
- [vaultwarden_icon_blacklist_non_global_ips ](#vaultwarden_icon_blacklist_non_global_ips )
- [vaultwarden_icon_blacklist_regexl ](#vaultwarden_icon_blacklist_regexl )
- [vaultwarden_icon_cache_negttl ](#vaultwarden_icon_cache_negttl )
- [vaultwarden_icon_cache_ttl ](#vaultwarden_icon_cache_ttl )
- [vaultwarden_icon_download_timeout ](#vaultwarden_icon_download_timeout )
- [vaultwarden_image ](#vaultwarden_image )
- [vaultwarden_invitations_allowed ](#vaultwarden_invitations_allowed )
- [vaultwarden_ip_header ](#vaultwarden_ip_header )
- [vaultwarden_log_level ](#vaultwarden_log_level )
- [vaultwarden_memory_limit ](#vaultwarden_memory_limit )
- [vaultwarden_memory_reservation ](#vaultwarden_memory_reservation )
- [vaultwarden_networks ](#vaultwarden_networks )
- [vaultwarden_networks_applied ](#vaultwarden_networks_applied )
- [vaultwarden_org_attachment_limit ](#vaultwarden_org_attachment_limit )
- [vaultwarden_password_iterations ](#vaultwarden_password_iterations )
- [vaultwarden_pids_limit ](#vaultwarden_pids_limit )
- [vaultwarden_reload_templates ](#vaultwarden_reload_templates )
- [vaultwarden_restart_policy ](#vaultwarden_restart_policy )
- [vaultwarden_security_opt ](#vaultwarden_security_opt )
- [vaultwarden_service_directory ](#vaultwarden_service_directory )
- [vaultwarden_service_stopped ](#vaultwarden_service_stopped )
- [vaultwarden_show_password_hint ](#vaultwarden_show_password_hint )
- [vaultwarden_signups_allowed ](#vaultwarden_signups_allowed )
- [vaultwarden_signups_domains_whitelist ](#vaultwarden_signups_domains_whitelist )
- [vaultwarden_signups_verify ](#vaultwarden_signups_verify )
- [vaultwarden_signups_verify_resend_limit ](#vaultwarden_signups_verify_resend_limit )
- [vaultwarden_signups_verify_resend_time ](#vaultwarden_signups_verify_resend_time )
- [vaultwarden_smtp_auth_mechanism ](#vaultwarden_smtp_auth_mechanism )
- [vaultwarden_smtp_from ](#vaultwarden_smtp_from )
- [vaultwarden_smtp_from_name ](#vaultwarden_smtp_from_name )
- [vaultwarden_smtp_host ](#vaultwarden_smtp_host )
- [vaultwarden_smtp_password ](#vaultwarden_smtp_password )
- [vaultwarden_smtp_port ](#vaultwarden_smtp_port )
- [vaultwarden_smtp_ssl ](#vaultwarden_smtp_ssl )
- [vaultwarden_smtp_timeout ](#vaultwarden_smtp_timeout )
- [vaultwarden_smtp_username ](#vaultwarden_smtp_username )
- [vaultwarden_templates_folder ](#vaultwarden_templates_folder )
- [vaultwarden_user_attachment_limit ](#vaultwarden_user_attachment_limit )
- [vaultwarden_version ](#vaultwarden_version )
- [vaultwarden_volumes ](#vaultwarden_volumes )
- [vaultwarden_web_vault_enabled ](#vaultwarden_web_vault_enabled )
- [vaultwarden_websocket_enabled ](#vaultwarden_websocket_enabled )
- [Dependencies ](#dependencies )
2020-01-21 00:23:06 +00:00
---
## Default Variables
2021-05-15 14:24:34 +00:00
### vaultwarden_admin_token
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_admin_token: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_authenticator_disable_time_drift
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_authenticator_disable_time_drift: false
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_base_url
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_base_url: http://localhost/
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_cap_add
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_cap_add: []
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_cap_drop
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_cap_drop: []
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_container_name
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_container_name: vaultwarden
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_cpu_shares
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_cpu_shares: _unset_
2020-01-21 00:23:06 +00:00
```
#### Example usage
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_cpu_shares: '1024'
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_db_name
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_db_name: vaultwarden
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_db_password
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_db_password: secure
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_db_port
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_db_port: 5432
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_db_server
2020-01-21 00:23:06 +00:00
This ansible roles does only support postgresql as database"
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_db_server: localhost
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_db_ssl_mode
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_db_ssl_mode: disable
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_db_ssl_rootcert
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_db_ssl_rootcert: /etc/ssl/certs/ca-certificates.crt
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_db_user
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_db_user: pgvaultwarden
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_disable_2fa_remember
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_disable_2fa_remember: false
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_disable_icon_download
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_disable_icon_download: false
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_exposed_ports
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_exposed_ports:
2020-06-23 11:02:45 +00:00
- 127.0.0.1:8080:8080
2020-01-21 00:23:06 +00:00
```
2020-06-23 11:02:45 +00:00
#### Example usage
2020-01-21 00:23:06 +00:00
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_exposed_ports:
2020-06-23 11:02:45 +00:00
- "127.0.0.1:8080:8080"
- "127.0.0.1:3012:3012"
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_extended_logging
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_extended_logging: true
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_extra_hosts
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_extra_hosts: []
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_healthcheck
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_healthcheck:
2020-02-07 19:33:36 +00:00
test: '["CMD", "/usr/local/bin/healthcheck"]'
2020-01-21 00:23:06 +00:00
interval: 10s
timeout: 3s
retries: 3
```
2021-05-15 14:24:34 +00:00
### vaultwarden_icon_blacklist_non_global_ips
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_icon_blacklist_non_global_ips: true
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_icon_blacklist_regexl
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_icon_blacklist_regexl: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_icon_cache_negttl
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_icon_cache_negttl: '{{ vaultwarden_icon_cache_ttl }}'
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_icon_cache_ttl
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_icon_cache_ttl: 2592000
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_icon_download_timeout
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_icon_download_timeout: 10
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_image
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_image: thegeeklab/vaultwarden:{{ vaultwarden_version }}
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_invitations_allowed
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_invitations_allowed: true
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_ip_header
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_ip_header: x-client-ip
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_log_level
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_log_level: Info
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_memory_limit
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_memory_limit: _unset_
2020-01-21 00:23:06 +00:00
```
#### Example usage
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_memory_limit: 512m
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_memory_reservation
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_memory_reservation: _unset_
2020-01-21 00:23:06 +00:00
```
#### Example usage
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_memory_reservation: 256m
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_networks
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_networks:
2020-06-23 11:02:45 +00:00
- name: default
2020-01-21 00:23:06 +00:00
```
#### Example usage
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_networks:
2020-06-23 11:02:45 +00:00
- name: default
# optional network driver, defaults to 'bride'
driver: host
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_networks_applied
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_networks_applied:
2020-06-23 11:02:45 +00:00
- default
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_org_attachment_limit
2020-03-14 20:57:26 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_org_attachment_limit: 1024
2020-03-14 20:57:26 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_password_iterations
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_password_iterations: 100000
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_pids_limit
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_pids_limit: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_reload_templates
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_reload_templates: false
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_restart_policy
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_restart_policy: always
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_security_opt
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_security_opt: []
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_service_directory
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_service_directory: /var/lib/docker/services/vaultwarden
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_service_stopped
2020-06-23 11:02:45 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_service_stopped: false
2020-06-23 11:02:45 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_show_password_hint
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_show_password_hint: true
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_signups_allowed
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_signups_allowed: false
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_signups_domains_whitelist
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_signups_domains_whitelist: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_signups_verify
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_signups_verify: false
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_signups_verify_resend_limit
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_signups_verify_resend_limit: 6
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_signups_verify_resend_time
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_signups_verify_resend_time: 3600
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_auth_mechanism
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_auth_mechanism: plain
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_from
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_from: vaultwarden@localhost
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_from_name
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_from_name: Vaultwarden
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_host
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_host: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_password
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_password: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_port
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_port: 587
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_ssl
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_ssl: true
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_timeout
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_timeout: 15
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_smtp_username
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_smtp_username: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_templates_folder
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_templates_folder: _unset_
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_user_attachment_limit
2020-03-14 20:57:26 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_user_attachment_limit: 1024
2020-03-14 20:57:26 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_version
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_version: latest
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_volumes
2020-06-23 11:02:45 +00:00
> Define required docker volumes.
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_volumes:
2020-06-23 11:02:45 +00:00
- name: data
dest: /app/data
bind: false
2020-01-21 00:23:06 +00:00
```
#### Example usage
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_volumes:
2020-06-23 11:02:45 +00:00
# Instead of the name you could specify a path on the container host system,
# but you also have to enable bind mount for this volume
- name: data
# target location inside the container
dest: /var/www/app/data
# enable bind mount, if false volume will be configured as named volume
# keep in mind you MUST set bind in any case
bind: True
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_web_vault_enabled
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_web_vault_enabled: true
2020-01-21 00:23:06 +00:00
```
2021-05-15 14:24:34 +00:00
### vaultwarden_websocket_enabled
2020-01-21 00:23:06 +00:00
2020-06-23 11:02:45 +00:00
If you enable websockets you also have to expose port `3012` .
2020-01-21 00:23:06 +00:00
#### Default value
```YAML
2021-05-15 14:24:34 +00:00
vaultwarden_websocket_enabled: false
2020-01-21 00:23:06 +00:00
```
2022-03-03 20:39:12 +00:00
2020-01-21 00:23:06 +00:00
## Dependencies
None.