Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.11 KB

File metadata and controls

31 lines (24 loc) · 1.11 KB

🐳 Selfhosted Docker

This repo contains all my running services within docker containers. It's basically a directory structure with docker-compose files, volumes and watchtower. The main reason for this repository are:

  • all applications are always up-to-date
  • host machine can be changed easily
  • easy backups for application configuration and required files

Structure

Every application has the following directory structure:

application_name
|-- confdir
|    -- application-config-files
|-- workdir
|    -- application-files
|-- .env.dist
|-- docker-compose.yml

Setup

cd into the wanted directory and run docker-compose up -d to start the service. Some services require an .env file so take .env.dist and fill in the env variables before start.

Updates & Volumes

Every docker image will be updated every 12 hours trough watchtower. For it to work properly, correct volumes have to be set for all applications. If that's the case, every application can be updated to the newer version without any loss.