This commit is contained in:
xiaochou164 2025-05-14 20:57:33 +08:00
parent 0ef6bbdc42
commit 05df4cd7eb
1 changed files with 14 additions and 0 deletions

14
nextcloud.yml Normal file
View File

@ -0,0 +1,14 @@
version: '3.8'
services:
nextcloud:
image: nextcloud:latest
container_name: nextcloud-lite
ports:
- 80 # 映射宿主机的8080端口到容器的80端口可根据需求修改
volumes:
- /app/nextcloud:/var/www/html # 存储 Nextcloud 核心数据和文件
environment:
- NEXTCLOUD_VERSION=lite # 启用 Lite 模式
- PGID=1000 # 容器用户GID与宿主机用户匹配
- PUID=1000 # 容器用户UID与宿主机用户匹配