Nextcloud is a self-hosted file storage and synchronization service.
584
13RC4-armhf13RC4-amd64All 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.
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.
PORT – Port the web server listens onDB_HOST – MySQL/MariDB server hostDB_NAME – Database nameDB_USERNAME – User nameDB_PASSWORD – User password/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.Content type
Image
Digest
Size
289.4 MB
Last updated
about 8 years ago
docker pull cusdeb/nextcloud:14RC2-amd64