ユーザ用ツール

サイト用ツール


サイドバー

このページの翻訳:



最近の更新



Tag Cloud

06_virtualization:05_container:24_bitwarden

24 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:
06_virtualization/05_container/24_bitwarden.txt · 最終更新: 2023/05/15 22:59 by matsui