For business it’s sometime important to have a central place where employees and clients are able to interact together. NextCloud is a simple and extendable PHP solution with a huge set of features you can host by yourself, to keep full control of your data. A classical Groupware ready for your own cloud.
If you want to install NextCloud on your own server you need as first a well working PHP installation with a HTTP Server like Apache. Also a Database Management System is mandatory. You can chose between MySQL, MariaDB and PostgreSQL servers. The classical way to install and configure all those components takes a lot of time and the maintenance is very difficult. To overcome all this we use a modern approach with the virtualization tool docker.
The system setup is as the following: Ubuntu x64 Server, PostgreSQL Database, pgAdmin DBMS Management and NextCloud.
- Docker Basics
- Installing Docker on a Ubuntu server
- prepare your database
- putting all together and make it run
- insights to operate NextCloud
Docker Container Instructions
# create network docker network create -d bridge --subnet=172.18.0.0/16 service # postures database server docker run -d --name postgres --restart=always \ --net service --ip 172.18.0.2 \ -e POSTGRES_PASSWORD=s3cr3t \ -e PGPASSWORD=s3cr3t \ -v /home/ed/postgres/data:/var/lib/postgresql/data \ postgres:11.1 # copy files from container to host system docker cp postgres:/var/lib/postgresql/data /home/ed/postgres # pgAdmin administration tool docker run -d --name pgadmin --restart=no \ -p 8004:80 --net services --ip 172.18.0.3 \ -e PGADMIN_DEFAULT_EMAILfirstname.lastname@example.org \ -e PGADMIN_DEFAULT_PASSWORD=s3cr3t \ dpage/pgadmin4:5.4 # nextcloud container docker run -d --name nextcloud --restart=always \ -p 8080:80 --net services --ip 172.18.0.4 \ -v /home/ed/_TEMP_/nextcloud:/var/www/html \ -e POSTGRES_DB=nextcloud \ -e POSTGRES_USER=nextcloud \ -e POSTGRES_PASSWORD=nextcloud \ -e POSTGRES_HOST=172.18.0.2 \ nextcloud:22.2.0-apache
 Tutorial: Learn to walk with Docker and PostgreSQL
 Ubuntu Server: https://ubuntu.com/download/server/
 Docker : https://www.docker.com
 PostgreSQL https://hub.docker.com/_/postgres
 pgAdmin https://hub.docker.com/r/dpage/pgadmin4
 NextCloud https://hub.docker.com/_/nextcloud
If you have any question feel free to leave a comment. May you need help to install and operate your own NextCloud installation secure, don’t hesitate to contact us by the contact form. In the case you like the video level a thumbs up and share it.
Amazon affiliate links of my environment:
- Raspberry Pi 4 Model B 2019 Quad Core 64 Bit WiFi Bluetooth (4GB)
- Argon ONE V2 Raspberry Pi 4 Case with Power Button and Fan
- CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
- SanDisk 128GB Extreme microSDXC UHS-I Memory Card with Adapter – Up to 160MB/s, C10, U3, V30, 4K, A2, Micro SD – SDSQXA1-128G-GN6MA