2023年2月28日 星期二

Nextcloud的docker安裝

Nextcloud Stack

紅色項目依實際修改
建立nextcloud 容器之前,先建立資料庫
如果有需要分享整個nextcloud資料夾,也請先在NAS裡建立共享文件夾
為了方便資料庫與容器互相訪問,先在portainer的Networks手動建立一個橋接網路,以下範例使用的網路名稱為"mynet"
---
version: "2"
services:
  nextcloud:
    image: linuxserver/nextcloud
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Asia/Taipei
    volumes:
      - /srv/指定儲存區/nextclud/config:/config #nextcloud設定檔
      - /srv/指定儲存區/nextclud/data:/data #使用者資料
      - /其他外部掛載資料夾:/外部掛載資料夾
    networks:
      - mynet
    ports:
      - 443:443
    restart: unless-stopped

networks:
  mynet:
    external:
      name: mynet

參考網址:

https://www.youtube.com/watch?v=IxNA0tvK0zs

https://tvtv.fun/pc-to-nas/22th.html

沒有留言:

張貼留言