Skip to content

A docker container for the Nextcloud server: a safe home for all your data

License

Notifications You must be signed in to change notification settings

greyltc/docker-nextcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nextcloud

This is just like my ownCloud server Docker container repo only it's for Nextcloud. Here is some background relating to the ownCloud/Nextcloud fissure.

Simple to use Docker container with the latest stable Nextcloud server release, complete with all the bells and whistles. This project is 100% transparent and trustable, every file in the resulting docker image is traceable and inspectable by following up the docker image depenancy tree which starts with my Arch Linux base image.

Please report any issues or improvement ideas to the github issue tracker
Pull requests welcome! Let's work together!

Say thanks by adding a star here and/or here.

Usage

  1. Install docker
  2. Download and start the Nextcloud server instance
docker pull greyltc/nextcloud
docker run --name nc -p 80:80 -p 443:443 -d greyltc/nextcloud
  1. Access your Nextcloud server
    Point your web browser to https://localhost/nextcloud
    Note: If you're on MacOS or Windows you can't use "localhost" here. Run docker-machine ip default to figure out what you should use in place of localhost.

  2. Setup nextcloud
    Follow the instructions in your browser to perform the initial setup of your server.

  3. [Optional] Stop the server instance

docker stop nc

You can restart the container later with docker start nc

  1. [Optional] Delete the server instance
docker rm nc #<--WARNING: this will delete anything stored inside the container
  1. Profit.

Updating Nextcloud

Periodically new NextCloud server versions will be released. You should probably keep your server on whatever the latest stable version is. Whenever a new update is released, you'll see a banner appear across the top of the NextCloud web interface indicating that it's time to upgrade. I do not reccommend somehow switching your already running NextCloud server to a new version of this container (although you're welcome to try if your data isn't critical).

You should follow the official NextCloud upgrade instructions for updating your NextCloud server. You'll need to change the permissions of some files in the container to allow them to be updated this way. I've tried to make this straightforward by including a script to manage the permissions for you. Before you run the updater app (as described in the official instructions), run docker exec -it nc sh -c 'set-nc-perms upgrade'. Then after you've completed the upgrade, set the permissions back to their "safer" default values like this: docker exec -it nc sh -c 'set-nc-perms runtime'. Where nc is the name you chose when running your container.

About

A docker container for the Nextcloud server: a safe home for all your data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published