add bitwarden

This commit is contained in:
Michael Rennecke 2020-04-19 21:22:19 +02:00
parent b372e0930c
commit ca3c6760ba
4 changed files with 33 additions and 1 deletions

View File

@ -6,4 +6,5 @@
- hosts: mail.0rpheus.net
roles:
- haproxy
- haproxy
- bitwarden

View File

@ -13,6 +13,8 @@ all:
# automated updates
Unattended_Upgrade: 1
Update_Package_Lists: 1
bitwarden_version: 1.14.2-alpine
certbot_domains:
- "jabber.0rpheus.net"
@ -20,6 +22,7 @@ all:
haproxy_domains:
# <Domain>: <Backend>
smokeping.0rpheus.net: smokeping
bitwarden.0rpheus.net: bitwarden
seafile.0rpheus.net: odroid
jabber.0rpheus.net: prosody
tt-rss.0rpheus.net: odroid
@ -45,6 +48,10 @@ all:
server_defs:
- "odroid-docker 172.30.30.2:1080 check"
bitwarden:
server_defs:
- "mail-docker 127.0.0.1:2080 check"
gogs:
server_defs:
- "gogs-web-1 127.0.0.1:3000 check"

View File

@ -0,0 +1,4 @@
---
bitwarden_data: /srv/bitwarden.0rpheus.net/data/
bitwarden_version: latest

View File

@ -0,0 +1,20 @@
---
- name: bitwarden data
file:
path: "{{ bitwarden_data }}"
state: directory
recurse: yes
- name: bitwarden container
docker_container:
name: bitwarden.0rpheus.net
image: "bitwardenrs/server:{{ bitwarden_version }}"
pull: yes
restart_policy: always
ports:
- 127.0.0.1:2080:80
volumes:
- "{{ bitwarden_data }}:/data/:rw"