1. 更新 docker-compose.yml
2. 在 nextcloud 服務中新增 NAS 共享資料夾掛載
This commit is contained in:
@@ -5,8 +5,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:80
|
||||||
volumes:
|
volumes:
|
||||||
# - ./config.php:/var/www/html/config/config.php
|
|
||||||
- ./data/nextcloud:/var/www/html
|
- ./data/nextcloud:/var/www/html
|
||||||
|
- /nas/share:/nas/share:ro # 這裡掛載 NAS 共享資料夾,建議設為唯讀
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|||||||
Reference in New Issue
Block a user