My Docker-Nextcloud-Setup for small self-hosted v-servers easy to use, easy to deploy. I will continue developing the settings and security.
Requirements: You will need Docker & Docker-Compose installed and configured.
- clone the repo
- open
docker-compose.yml
with your favorite editor - change the domain and email with your data
- check name for network and the path for volumes etc.
- set your own password for MySQL/MariaDB root user and Nextcloud DB user
- check
nextcloud.ini
and edit it with your values if necessary - check
my_proxy.conf
and edit the values if necessary - start it with
docker-compose up -d
- open a browser and enter your preset domain
- finish the initial Nextcloud Setup
- it might be to add
'overwriteprotocol' => 'https',
to theconfig.php
for Nextcloud to gethttps
only and make desktop and mobile authorization work - add
'filelocking.enabled' => false,
to theconfig.php
to avoid filelocking - add
'default_phone_region' => 'DE',
to theconfig.php
to enable default locale on your Nextcloud server (e.g. Germany) - navigate to
your-path/app/config
to openconfig.php
with vi/vim and add the line from point 11. - 13. - optional: it might be you have to install manually SVG support. Exec it with
Docker exec -it nextcloud-app bash
and execute in the containerapt update && apt install -y libmagickcore-6.q16-6-extra
and reboot the service e.g.docker-compose restart app
(use the name of your defined server from compose file.)
- improving security by using passwords in a more secure way
- add point 11 - 13 automatically with the initial setup
The following Repos/Hub-images have been used:
https://hub.docker.com/r/jwilder/nginx-proxy/ https://github.com/nginx-proxy/nginx-proxy
https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion/ https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
https://hub.docker.com/_/mariadb https://github.com/docker-library/mariadb
https://nextcloud.com/ https://github.com/nextcloud
Thank you to the community for all open source software and public repositories.