# Self-Host This is a collection of local tools, originally made for`RHEL 8` using `podman`. Most of this should also work for `Docker`, save a few commands in the shell scripts. - [Self-Host](#self-host) - [Starting](#starting) - [Deploy styles](#deploy-styles) - [Secrets](#secrets) - [Versions](#versions) - [Templates](#templates) - [Storage](#storage) - [List of Volumes](#list-of-volumes) - [TODO](#todo) - [Organization](#organization) ## Starting Copy `.env.example` to `.env` at the root of this project and edit as needed: ```shell cp .env.example .env ``` ```shell HOST=localhost DOCKER_DIR=/var/run/docker.sock # or wherever podman is for you TRILIUM_DATA_DIR=./data # optional ``` > Sadly this does not extend to `./admin-tools/dashy/config` files as of yet If you use [direnv](https://direnv.net/), run `direnv allow` once — the tracked `.envrc` loads `.env` automatically and also fixes up `HOSTNAME` with your machine's real hostname (docker compose can't shell-evaluate `.env` values itself, so this needs a real shell). `./docker-compose.yaml` is the base file — it defines the shared `proxy` network plus Traefik and a `whoami` test target. It's a self-contained smoke test: after cloning the repo and setting up `.env`, you can confirm your setup works with nothing but: ```bash docker compose up -d ``` Then visit `whoami.` to confirm Traefik routing works end to end. Everything beyond that smoke test is opt-in via a **deploy style** override, layered on top with Compose's `-f` flag: ```bash docker compose -f docker-compose.yaml -f compose.local.yaml up -d ``` To stop everything for a style: ```bash docker compose -f docker-compose.yaml -f compose.local.yaml down ``` ### Deploy styles A deploy style is just a `compose.