ansible/playbooks/tasks/app/vaultwarden.yml

19 lines
587 B
YAML
Raw Normal View History

2022-07-23 17:26:11 -05:00
# vim:ft=ansible:
- name: docker deploy vaultwarden
docker_container:
# https://github.com/dani-garcia/vaultwarden/wiki/Which-container-image-to-use
name: vaultwarden
2024-05-21 18:48:22 -05:00
state: absent
2022-07-23 17:26:11 -05:00
image: vaultwarden/server:alpine
pull: yes
restart_policy: unless-stopped
env:
DATABASE_URL: "postgresql://vaultwarden-desultd:{{ secret_vaultwarden_db_pass }}@10.0.0.2:5432/vaultwarden-desultd"
2022-07-23 17:37:53 -05:00
SIGNUPS_ALLOWED: "false"
2022-07-23 17:26:11 -05:00
volumes:
- /data/vaultwarden:/data
networks:
- name: web
aliases: [ "vaultwarden" ]
tags: [ docker, vaultwarden ]