My docker-compose setup for Nextcloud
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

713 B

This is the docker-compose configuration used for my Nextcloud server.


Copyright © 2020, Julian Leyh <>

Licensed under the MIT License, see LICENSE.txt.


First, copy the db.env.sample to db.env and add a password.

Next, change the hostname from to the one you want to use in docker-compose.yml

Now, you can run it using following command:

docker-compose up -d

occ command line tool

If you need to run the occ tool, you can use the shellscript.

cron jobs

To enable the cronjobs, add a crontab entry like this:

*/15 * * * * cd /path/to/repo && ./