Giter VIP home page Giter VIP logo

selfhosted's Introduction

Selfhosted - Docker Compose files

This repository contains a collection of folders, each with its own docker-compose.yml to deploy various self-hosted applications. Some folders also include an example.env as a template for passing in credentials / options to the docker compose file. \

Within lots of these docker compose files, the containers join the nginx_default network. This is the network my reverse proxy is on hence why it is included within the compose file. This network is external and so is not removed after docker compose down.

Requirements

To get started with any of the applications, you need to have Docker and Docker Compose installed.

curl -sSL https://get.docker.com/ | CHANNEL=stable sh
systemctl enable --now docker
apt update
apt install docker-compose-plugin

Note

If installing on Debian, the convenience script might not work and you need to follow the steps listed here,
paying special attention to the note listed there

Folder Structure

Each folder in this repository corresponds to a different self-hosted application.

  • app1, app2, app3, etc: Each folder relates to the specific application.
  • docker-compose.yml: The Docker Compose file for the application.
  • example.env: An example environment variables file. Copy this file to .env and fill in the necessary values.

General Usage

Make a folder for the chosen app and change directory.

  1. Get docker-compose.yml for {folder}

    curl https://raw.githubusercontent.com/Doozy134/selfhosted/main/{folder}/docker-compose.yml > docker-compose.yml
    # If there is an environment file
    curl https://raw.githubusercontent.com/Doozy134/selfhosted/main/{folder}/example.env > .env
  2. Edit the .env file (if necessary) with your preferred text editor to configure environment variables.

  3. Start the application

    docker compose up -d

    If you spin up / down the stack but changes are not reflected, you can add the --force-recreate tag.

  4. Stop the application

    To stop the application, run:

    docker compose down

selfhosted's People

Contributors

doozy134 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.