homelab/roles/vaultwarden/tasks/main.yml

23 lines
531 B
YAML
Raw Normal View History

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 }}"
LOG_LEVEL: warn
DATABASE_URL: "{{ db_url }}"
networks:
- name: postgresql
2024-10-14 23:58:06 +05:00
- name: haproxy
2024-09-29 18:04:34 +05:00
ports:
- 127.0.0.1:3002:80
volumes:
- vaultwarden:/data
restart_policy: unless-stopped