# Synology 使用Docker架設Vaultwarden密碼管理

<p class="callout info">**Vaultwarden為官方的 Bitwarden 社群版本，使用SQLite非常輕量，適合個人架設使用**</p>

##### **運行環境**  


- **DSM 7.1**

##### **安裝Vaultwarden**

**確認已安裝[Portainer](https://note.homesitetw.com/books/synology/page/synology-portainer-docker#bkmrk-%E5%AE%89%E8%A3%9Ddocker%E5%92%8Cportainer)，在docker資料夾新增`vaultwarden`，裡面新增`vw-data`**

**[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/qbRimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/qbRimage.png)**

**進入Portainer，新增堆棧(Stack)並部屬**

```
services:
  app:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: always
    volumes:
      - /volume1/docker/vaultwarden/vw-data:/data/
    environment:
      - ADMIN_TOKEN=1qaxxwsx3xx
    ports:
      - 8080:80
```

**Vaultwarden需要https才能使用，Synology內`登入入口`&gt;`進階`&gt;`反向代理`**

**新增你的網域和通訊埠**

**[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/1joimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/1joimage.png)**

**進入`https://domain:12345/admin`，修改Domain URL和管理員token後儲存**

**管理員token在docker部屬時的ADMIN\_TOKEN參數**

**[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/VFVimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/VFVimage.png)**

**[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/y2dimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/y2dimage.png)**

**進入`https://domain:12345/`，創建使用者，登入後完成架設**

**[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/nGPimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/nGPimage.png)**

##### **Chrome新增擴充功能**

**安裝[Bitwarden - 免費密碼管理工具](https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb?hl=zh-TW)後，點選自架輸入伺服器URL並登入**

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/Y6cimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/Y6cimage.png)

**進入其他網站，會顯示登入功能**

[![image.png](https://note.homesitetw.com/uploads/images/gallery/2025-09/scaled-1680-/hIqimage.png)](https://note.homesitetw.com/uploads/images/gallery/2025-09/hIqimage.png)