Johan Koke 23cbaaca27 | ||
---|---|---|
.gitignore | ||
README.md | ||
collabora-nginx-adv.txt | ||
docker-compose.yaml | ||
env | ||
loolwsd.xml | ||
nextcloud | ||
nextcloud-nginx-adv.txt |
README.md
Nextcloud docker-compose recipe
Scope
This repo is intended for anyone who wishes to self host Nextcloud in docker containers and has been developed based on several tutorials I found online. After cloning the repo for the first time, you'll need to run the init.sh script to create the required folders.
folders required
- data
- app ( folder to store Nextcloud app )
- sql ( folder for the mariadb container to store database files )
- config ( easy accces to the config.php file for nextcloud )
- theme ( theme folder, which I don't use but it's there for anyone who wants to )
Requirements
To use this repo you will need an Ubunto/Debian based Linux system with docker and docker-compose pre installed. The scripts and files also assume that the default admin user id is 1000 which is the defualt for Ubunto server.
sudo apt update && apt upgrade -y
sudo apt install docker docker-compose
Clone this repo to the folder where you'd like to run your Nextcloud instance from.
git clone https://git.koke.estate/Docker/nextcloud.git
Steps to install first instance
-
Prepare .env file
cp env .env nano .env
-
Start docker containers
docker-compose up -d
or
./nextcloud up