Skip to content

About

A NextCloud server with MariaDB as database. This server is behind a reverse proxy (Nginx), enabled with LetsEncrypt service for SSL encryption.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Dockerized-NextCloud-MariaDB-LetsEncrypt

A NextCloud server with MariaDB as database. This server is behind a reverse proxy (Nginx), enabled with LetsEncrypt service for SSL encryption.

Special thanks to the following github users:

Follow these steps in order to create your NextCloud service

  1. First of all you have to clone this repository on your server.
    -$ mkdir -p ~/nextcloud
    -$ cd ~/nextcloud
    -$ git clone https://github.com/gregkoul/Dockerized-NextCloud-MariaDB-LetsEncrypt.git
  1. Create a directory for your storage with owner www-data.
    -$ mkdir -p /media/storage/nextcloud
    -$ chown -R www-data:www-data /media/storage/nextcloud
  1. Next edit the db.env file and modify your environment variables
    -$ cd ~/nextcloud/Dockerized-NextCloud-MariaDB-LetsEncrypt
    -$ vi db.env
  1. Next edit the web.env file and modify your environment variables
    -$ vi web.env
  1. Before you start up the dockers, you need to create only once a new virtual seperate network.
    -$ docker network create nginx-proxy
  1. Now you have to spin up everything.
    -$ docker-compose up -d
  1. Stay back and relax for a while! The docker-compose will spin up all the dockers one by one. Let about 2-3 minutes in order LetsEncrypt service create and pull the certs for your new domain. Be patient.

  2. I hope NOW to have access your DOMAIN. You have to finalize the initial setup for NextCloud service.

  3. During the initial setup, select the desired database type (eg. MariaDB). Fill the hostname field for the database server, with the database-container name. (eg. db). For the db credentials, use the environmental variables found in the db.env file.

Follow these steps in order to update your NextCloud service

  1. First of all you have to stop and remove the old dockers.
    -$ cd ~/nextcloud/Dockerized-NextCloud-MariaDB-LetsEncrypt
    -$ docker-compose down
  1. Now To update all of your containers with the latest updates by using the following command.
    -$ docker-compose pull
  1. Now you have to spin up everything.
    -$ docker-compose up -d

About

A NextCloud server with MariaDB as database. This server is behind a reverse proxy (Nginx), enabled with LetsEncrypt service for SSL encryption.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors