2024-09-29 18:04:34 +05:00
|
|
|
---
|
|
|
|
- name: Create vaultwarden docker volume
|
|
|
|
become: true
|
|
|
|
community.docker.docker_volume:
|
|
|
|
name: vaultwarden
|
|
|
|
- name: Create vaultwarden container
|
|
|
|
become: true
|
|
|
|
community.docker.docker_container:
|
|
|
|
name: vaultwarden
|
|
|
|
image: vaultwarden/server:1.32.0
|
|
|
|
env:
|
|
|
|
DOMAIN: "{{ domain }}"
|
2024-10-29 03:23:39 +05:00
|
|
|
LOG_LEVEL: "{{ log_level }}"
|
2024-09-29 18:04:34 +05:00
|
|
|
DATABASE_URL: "{{ db_url }}"
|
2024-10-29 03:23:39 +05:00
|
|
|
SIGNUPS_ALLOWED: "{{ signups_allowed | string }}"
|
|
|
|
SMTP_HOST: "{{ smtp_host }}"
|
|
|
|
SMTP_FROM: "{{ smtp_from }}"
|
|
|
|
SMTP_PORT: "{{ smtp_port | string }}"
|
|
|
|
SMTP_SECURITY: "{{ smtp_security }}"
|
|
|
|
SMTP_USERNAME: "{{ smtp_username }}"
|
|
|
|
SMTP_PASSWORD: "{{ smtp_password }}"
|
2024-09-29 18:04:34 +05:00
|
|
|
networks:
|
|
|
|
- name: postgresql
|
2024-10-14 23:58:06 +05:00
|
|
|
- name: haproxy
|
2024-09-29 18:04:34 +05:00
|
|
|
volumes:
|
|
|
|
- vaultwarden:/data
|
|
|
|
restart_policy: unless-stopped
|