No Description

samien 5229bf42e0 fix 2 months ago
files dde0689eff 修改 SYS_USER 3 months ago
Dockerfile e369ca1e73 fix 3 months ago
README.md dde0689eff 修改 SYS_USER 3 months ago
build.sh 5229bf42e0 fix 2 months ago

README.md

Nextcloud client

This image provides a Nextcloud client to sync a Docker volume to a Nectcloud location.

Usage

To start the container run docker run -d --init --name nextcloud-client --restart unless-stopped -v nextcloud-data:/home/nextcloud/data -e USER='myuser' -e PSWD='mypswd' -e HOST='https://myhost' nilsramsperger/nextcloud-client The env parameters USER, PSWD and HOST have to be replaced with username, password and host URL of the NextCloud server.

The files will be synced to the continer's /home/nextcloud/data directory. If you want to sync a docker volume to a certian location within the synced directory structure, just exchange the -v parameter accordingly. i.e.: -v image-files:/home/nextcloud/data/image-files

Synchronization is performed every 60 seconds.

docker run -d --init --name nextcloud-client --restart unless-stopped -v nextcloud-data:/home/nextcloud/data -e USER='myuser' -e PSWD='mypswd' -e HOST='https://myhost' -e PATH_URL nilsramsperger/nextcloud-client

参数说明:

USER:用户名

PSWD:密码

HOST:网址路径

FNAME:子目录路径

USER_UID:系统用户ID,默认1000

USER_GID:系统用户组ID,默认1000

配置文件路径

过滤文件:

/config/sync-exclude.lst

~*.tmp
._*
]Thumbs.db
]photothumb.db
System Volume Information

不同步目录列表:

/config/unsync-folders.lst

/Tools
/Backups

demo

docker run -d --init \
  --name nextcloud-client-***-works \
  --restart unless-stopped \
  -v /vol2/1000/Works:/home/nextcloud/data \
  -v /vol1/1000/Docker/nextcloud-client/config:/config \
  -e USER='***' \
  -e PSWD='****' \
  -e HOST='http://192.168.153.5/' \
  -e FNAME='/Works' \
  nextcloud-client

编译

命令

docker build -t nextcloud-client .
粤ICP备19079148号