A docker-compose setup for Nextcloud using the official image, along with nginx and postgres alpine containers.
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.
 
Alexis Werefox 72f75a0c42 Minor change to Nextcloud_Storage volume mount. 2 months ago
.gitignore Initial commit. This setup is working. 11 months ago
Dockerfile Changed docker-compose yml to 2.4 version to handle mem limits, added timeouts to nginx conf, Dockerfile to handle cronjobs. 10 months ago
README.md Initial commit. This setup is working. 11 months ago
docker-compose.yml Minor change to Nextcloud_Storage volume mount. 2 months ago
prod-nginx.conf Changed docker-compose yml to 2.4 version to handle mem limits, added timeouts to nginx conf, Dockerfile to handle cronjobs. 10 months ago
supervisord.conf Changed docker-compose yml to 2.4 version to handle mem limits, added timeouts to nginx conf, Dockerfile to handle cronjobs. 10 months ago
www-data updated docker-compose.yml, added www-data for cron jobs. 4 months ago

README.md

Docker-compose setup for Nextcloud

This is a docker-compose setup for hosting Nextcloud.

It uses alpine images for the three containers:

  • Nextcloud
  • Nginx
  • Postgresql

Installation

You will need to ensure you have created the following subdirectories:

  • config - This will host your Postgres Database password in a file called "pgdb.key"
  • db - This will host your Postgres Database files
  • nextcloud - This will host all Nextcloud files/subdirectories

If you wish to map any of the other Nextlcoud subdirectories for a more customized configuration, please refer to the Nextcloud docker container's official documentation for instructions on how to map the various directories using docker-compose: https://hub.docker.com/_/nextcloud/

Usage

sudo docker-compose up -d to start and detach.

PSA

Be advised that there may be additional steps to setup, such as modifying the prod-nginx.conf file to set things to listen on your specific domain, or change the port configuration. At the time of writing, I am mainly concerned with getting the most of this setup out there. If you need help, feel free to contact me, especially if I never get around to filling this out more.

email: adh9694@gmail.com telegram: @shadow8t4 discord: @shadow8t4#8276 matrix: @shadow8t4#matrix.werefox.dev