0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-12-29 04:07:35 +01:00
mirror of [official nextcloud/docker](https://github.com/nextcloud/docker)
Find a file
2017-03-14 10:55:12 +01:00
9.0 Changed the php version back to 5.6 for nextcloud 9 and 10 2017-03-07 14:31:01 +01:00
10.0 Changed the php version back to 5.6 for nextcloud 9 and 10 2017-03-07 14:31:01 +01:00
11.0 Update to Version 9.0.57, 10.0.4 and 11.0.2 2017-03-03 17:35:07 +01:00
examples added missing supervisord.conf for the example 2017-03-14 10:55:12 +01:00
docker-entrypoint.sh first commit 2016-07-30 15:30:52 +01:00
Dockerfile-php7.template Changed the php version back to 5.6 for nextcloud 9 and 10 2017-03-07 14:31:01 +01:00
Dockerfile.template Changed the php version back to 5.6 for nextcloud 9 and 10 2017-03-07 14:31:01 +01:00
generate-stackbrew-library.sh my email is not needed there 2017-01-21 15:31:10 +00:00
license.md first commit 2016-07-30 15:30:52 +01:00
logo.png first commit 2016-07-30 15:30:52 +01:00
README.md Changes to README 2017-01-21 23:14:59 +00:00
update.sh Added function for version comparison 2017-03-07 15:33:57 +01:00

What is Nextcloud?

A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms.

logo

How to use this image

This image is designed to be used in a micro-service environment. It consists of the Nextcloud installation in an php-fpm container. To use this image it must be combined with any webserver that can proxy the http requests to the FastCGI-port of the container.

Start Nextcloud

Starting Nextcloud php-fpm instance listening on port 9000 is as easy as the following:

$ docker run -d indiehosters/nextcloud

Now you can get access to fpm running on port 9000 inside the container. If you want to access it from the internet, we recommend using a reverse proxy in front. You can install it directly on your machine or use an additional container (You can find more information on that on the docker-compose section). Once you have a reverse proxy, you can access Nextcloud at http://localhost/ and go through the wizard.

By default this container uses SQLite for data storage, but the Nextcloud setup wizard (appears on first run) allows connecting to an existing MySQL/MariaDB or PostgreSQL database. You can also link a database container, e.g. --link my-mysql:mysql, and then use mysql as the database host on setup.

Persistent data

All data beyond that which lives in the database (file uploads, etc) is stored within the default volume /var/www/html. With this volume, Nextcloud will only be updated when the file version.php is not present.

  • -v /<mydatalocation>:/var/www/html

For fine grained data persistence, you can use 3 volumes, as shown below.

  • -v /<mydatalocation>/apps:/var/www/html/apps installed / modified apps
  • -v /<mydatalocation>/config:/var/www/html/config local configuration
  • -v /<mydatalocation>/data:/var/www/html/data the actual data of your Nextcloud

... via docker-compose

The recommended minimal setup is using this image in combination with two containers: A database container and a reverse proxy for the http connection to the service. A working example can be found at IndieHosters/Nextcloud.

If you want to access your Nextcloud from the internet we recommend configuring your reverse proxy to use encryption (for example via let's Encrypt)

Update to a newer version

To update your Nextcloud version you simply have to pull and start the new container.

$ docker pull indiehosters/nextcloud
$ docker run -d indiehosters/nextcloud

When you access your site the update wizard will show up.