Giter VIP home page Giter VIP logo

nextcloud-docker-compose's Introduction

Nextcloud with Docker compose

This repository contains a Docker compose file which can be used to easily create a Nextcloud instance.

Architecture

Here are the various containers involved.

  • nextcloud: the actual Nextcloud server
  • mysql: the database used by Nextcloud to store its configuration
  • reverse-proxy: a nginx reverse proxy in front of Nextcloud and doing SSL termination
  • letsencrypt-companion: an utility container which issues and renews SSL certificates
  • backups: an utility container which regularly backups the Nextcloud files and database

Usage

Follow the steps below. If you don't want any backups, just remove the backups: section in docker-compose.yml, jump to step 2, and ignore the instructions related to Backblaze B2.

Step 1: Create a Backblaze account and bucket

  • Sign up for a Backblaze account at https://www.backblaze.com/b2/sign-up.html.

  • Write down your Backblaze account ID and secret key (TODO) for later

  • Create a B2 bucket (e.g. christophetd-nextcloud-backups) and write down its name for later

Step 2: Point your subdomain to the appropriate machine

  • If you don't have any, spin up a VPS on any cloud provider (AWS EC2, Digital Ocean, OVH...). If you use the following referral link, you'll benefit from $10 of free credit on Digital Ocean (and I will get $25): https://m.do.co/c/1504134cd374.

  • Point your subdomain (e.g. nextcloud.christophetd.fr) to this newly created VPS

Step 3: Configuration

Edit the .env file, and change at least the following:

  • HOST: the hostname of your VPS (e.g. nextcloud.christophetd.fr)
  • B2_BUCKET: the name of the B2 bucket you created in step 1
  • B2_ID and B2_KEY: your B2 credentials from step 1
  • BACKUP_ENCRYPTION_KEY: set it to a random passphrase. It will be used to encrypt your backups before shipping them to Backblaze.

Step 4: Profit!

Run:

$ docker-compose up -d

You'll need to wait a few minutes on first launch, as there is some certificate generation involved. Then, you should be able to access your Nextcloud instance!

You can now define your administrator credentials and use Nextcloud.

nextcloud-docker-compose's People

Contributors

christophetd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nextcloud-docker-compose's Issues

Try to follow the steps but get something wrong...

Hey,

First of all, thanks for sharing your docker compose YAML!
I try to follow and complete your steps and stack has running, but when i try to visit 443 outside get something wrong like 502 bad gateway.
I guess that maybe nginx-proxy setting is incomplete or nginx.conf is incomplete so i cant real reach the nextcloud...

Best wish.

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.