Sign inSign up

thisgeektweets/container-nextcloud-client

By thisgeektweets

•Updated almost 6 years ago

Image
0

191

thisgeektweets/container-nextcloud-client repository overview

⁠Nextcloud docker-client

⁠Example using local folder

docker run -it --rm \
  -v $(pwd)/sync-folder:/media/nextcloud \
  -e NC_USER=$username -e NC_PASS=$password \
  -e NC_URL=$server_url\
  thisgeektweets/container-nextcloud-client

⁠Example using a named volume⁠

docker run -it --rm \
  -v some_named_volume:/media/nextcloud \
  -e NC_USER=$username -e NC_PASS=$password \
  -e NC_URL=$server_url\
  thisgeektweets/container-nextcloud-client

⁠Example one time run

docker run -it --rm \
  -v some_named_volume:/media/nextcloud \
  -e NC_USER=$username -e NC_PASS=$password \
  -e NC_URL=$server_url\
  -e NC_EXIT=true\
  thisgeektweets/container-nextcloud-client

replace:

  • $username
  • $password
  • $server_url

with valid values for an existing and valid user on a Nextcloud Server.

⁠ENV variables to customize your deploy

⁠NC_USER

The user name to log in Default: username

⁠NC_PASS

Valid password for the user above in clear text Default: password

⁠NC_SOURCE_DIR

The directory inside de docker container to be synced, usually you will have a local mount here or a named volume default: /media/nextcloud/

⁠NC_SILENT

whether or not output activity to console default: false

⁠NC_INTERVAL

Sets the interval between syncs in seconds default: 300 (300 /60 = 5 Minutes)

⁠NC_EXIT

If "true" the sync will happen once and then the container will exit, very usefull for using in conjunction with cron or schedulers default: false example:

⁠Advanced settings

⁠USER

The system user inside the container you want to use for runing the sync

default: ncsync

⁠USER_GUID

The system user group id inside the container you want to use for runing the sync

default: 1000

⁠USER_UID

The system user id inside the container you want to use for runing the sync

default: 1000

⁠NC_TRUST_CERT

whether or not trust self signed certificates or invalid certificates

default: false

Tag summary

Content type

Image

Digest

Size

131.6 MB

Last updated

almost 6 years ago

docker pull thisgeektweets/container-nextcloud-client