Code Monkey home page Code Monkey logo

docker-nextcloud-gitea's Introduction

Docker-NextCloud-Gitea

Table of Content

  1. About
  2. Setup
  3. Sources

About

Dockerized NextCloud and Gitea behind a nginx reverse proxy with LetsEncrypt.

Setup

  1. Clone this repository:
    ~$ git clone https://gitea.ddnss.de/dvdvgt/Docker-NextCloud-Gitea.git
    ~$ cd Docker-NextCloud-Gitea
  2. Create the neccassary environment files:
    ~$ touch nextcloud_app.env nextcloud_db.env gitea_app.env gitea_db.env
    2.1 For *_db.env files add the following:
    MYSQL_DATABASE=CHANGEME
    MYSQL_USER=CHANGEME
    MYSQL_PASSWORD=CHANGEME
    MYSQL_ROOT_PASSWORD=CHANGEME
    2.2 For *_app.env files add the following:
    VIRTUAL_HOST=my.domain.com
    LETSENCRYPT_HOST=my.domain.com
    [email protected]
  3. Create the required directories:
    ~# mkdir /media/storage/nextcloud
    ~# mkdir /media/storage/gitea
    
    3.1 Change to ownership of the directories and all files in it:
    ~# chown -R www-data:www-data /media/storage/nextcloud
    ~# chown -R www-data:www-data /media/storage/gitea
    
  4. Create new virtual docker network:
    ~# docker network create nginx-proxy
    
  5. Start up the containers in detached mode. Should you encounter any issue it might be a good idea to run it normally and not in detached mode to figure out the problem.
    ~# docker-compose up -d
    

Now that (hopefully) everything is running and has started up successfully you may now open NextCloud or Gitea via the virtual host your provided in the .env files.

When first opening either Gitea or NextCloud you have to do the final setup. Select the MySQL database for both Gitea and Nextcloud and enter the credentials from the *_db.env files (not the root password though).

Now wait until it's done setting up and that's it. Enjoy!

Sources

The following software and images are used in this setup:

Name URL Description
Docker https://docs.docker.com/install/ Follow the instructions for installation. Note the convience script.
Docker-Compose https://docs.docker.com/compose/install/ Follow the instructions for installation
nginx-proxy https://hub.docker.com/r/jwilder/nginx-proxy, https://github.com/nginx-proxy/nginx-proxy Docker image
nginx https://hub.docker.com/_/nginx Docker image
nginx letsencrypt companion https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion Docker image
MariaDB https://hub.docker.com/_/mariadb MySQL Database Docker image for both NextCloud and Gitea
Gitea https://hub.docker.com/r/gitea/gitea, https://gitea.io/en-us/ Docker image
NextCloud https://hub.docker.com/_/nextcloud Docker image

docker-nextcloud-gitea's People

Contributors

dvdvgt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.