====== 24 Bitwarden/Vaultwarden ======
Bitwarden の軽量なオープンソースクローンです。
公式の Bitwarden サーバーに比べて、リソース消費を抑えたシステム要件で動作するよう設計されています。
version: '3'
services:
proxy:
image: nginxproxy/nginx-proxy:alpine
restart: always
ports:
- 80:80
- 443:443
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes:
- certs:/etc/nginx/certs:ro
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy-tier
letsencrypt-companion:
image: nginxproxy/acme-companion
restart: always
volumes:
- certs:/etc/nginx/certs
- acme:/etc/acme.sh
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy-tier
depends_on:
- proxy
vaultwarden:
image: vaultwarden/server
container_name: vaultwarden
environment:
- TZ=Asia/Tokyo
- VIRTUAL_HOST=bitwarden.hogehoge.com
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=bitwarden.hogehoge.com
- DOMAIN=https://bitwarden.hogehoge.com
- SIGNUPS_ALLOWED=false
- SMTP_HOST=hogehoge.com
- SMTP_FROM=mail@hogehoge.com
- SMTP_PORT=587
- SMTP_SSL=true
- SMTP_USERNAME=mail@hogehoge.com
- SMTP_PASSWORD=[PASSWORD]
volumes:
- /docker/vaultwarden/vw-data:/data
ports:
- 33545:80 # 適当なポート番号
restart: always
networks:
- proxy-tier
- default
volumes:
certs:
acme:
vhost.d:
html:
networks:
proxy-tier:
===== バージョンアップ =====
==== 1.Docker pull ====
docker pull vaultwarden/server:1.32.5
==== 2.docker-compose.yml修正 ====
vaultwarden:
image: vaultwarden/server:1.32.5
==== 3.反映 ====
docker-compose up -d
{{tag>docker Bitwarden Vaultwarden}}