Sign inSign up

cusdeb/nextcloud

By cusdeb

•Updated about 8 years ago

Nextcloud is a self-hosted file storage and synchronization service.

Image
0

584

cusdeb/nextcloud repository overview

⁠Supported tags

  • 13RC4-armhf
  • 13RC4-amd64

All the images use the same Dockerfile⁠, but with different base image. cusdeb/stretch:armhf and debian:stretch⁠ are used for the armhf and amd64 flavors respectively.

⁠Features

⁠How to use this image

After pulling the image, create an empty file /srv/nextcloud/config.php and an empty directory /srv/nextcloud/data. Make sure that the owner of the file and directory is www-data (uid 33).

CONFIG=/srv/nextcloud/config.php
DATA=/srv/nextcloud/data
mkdir -p $DATA
chown www-data:www-data $DATA
touch $CONFIG
chown www-data:www-data $CONFIG

Nextcloud from the image is supposed to store its data in MySQL/MariaDB, so install it to the host or run a corresponding container. Then, run the Nextcloud container.

docker run --rm --net=host \
    -e PORT=8001 \
    -e DB_HOST=127.0.0.1 \
    -e DB_NAME=cusdeb \
    -e DB_USERNAME=root \
    -e DB_PASSWORD=cusdeb \
    -v /srv/nextcloud/config.php:/var/www/nc/config/config.php \
    -v /srv/nextcloud/data:/var/www/nc/data/ \
    -v /srv/nextcloud/data/nginx:/var/log/nginx/ \
    -v /srv/nextcloud/data/supervisor:/var/log/supervisor/ \
    cusdeb/nextcloud:13RC4-amd64 \
    /usr/bin/supervisord -c /etc/supervisor/supervisord.conf

Finally, go to <server-ip-addr>:8001/nc and create an administrator account.

⁠Environment Variables

  • PORT – Port the web server listens on
  • DB_HOST – MySQL/MariDB server host
  • DB_NAME – Database name
  • DB_USERNAME – User name
  • DB_PASSWORD – User password

⁠Volumes

  • /srv/nextcloud/config.php -> /var/www/nc/config/config.php stores the Nextcloud configuration.
  • /srv/nextcloud/data -> /var/www/nc/data/ stores users-related data.
  • /srv/nextcloud/data/nginx -> /var/log/nginx/ stores Nginx logs.
  • /srv/nextcloud/data/supervisor -> /var/log/supervisor/ stores Supervisor logs.

⁠License

Tag summary

Content type

Image

Digest

Size

289.4 MB

Last updated

about 8 years ago

docker pull cusdeb/nextcloud:14RC2-amd64