Go from bare metal to a fully operational self-hosted home lab in minutes. This project provides a single docker-compose.yml entry point that wires together a reverse proxy, authentication middleware, and a growing library of optional self-hosted applications — all pre-configured to work together.
| Service | Purpose | Port |
|---|---|---|
| Nginx Proxy Manager | Reverse proxy + automatic SSL via Let's Encrypt | 81 (admin UI) |
| Authelia | Single sign-on and two-factor authentication | — |
| Redis | Session store for Authelia | — |
| Portainer | Docker management web UI | 9000 |
Enable any of these by uncommenting the relevant line in docker-compose.yml (see Adding or Removing Apps).
| Compose file | Apps | Notes |
|---|---|---|
compose.mysql.yml |
MySQL 8 + Adminer | General-purpose database server with a web-based admin UI |
compose.vaultwarden.yml |
Vaultwarden | Bitwarden-compatible password manager |
compose.homeassistant.yml |
Home Assistant | Home automation platform for smart-home devices |
compose.pihole.yml |
Pi-hole | Network-wide DNS ad blocker |
compose.plex.yml |
Plex | Media server for movies, TV, and music |
compose.olivetin.yml |
OliveTin | Web UI for safely running homelab ops commands |
compose.n8n.yml |
n8n | Workflow automation and AI platform |
compose.uptimekuma.yml |
Uptime Kuma | Uptime and network monitoring dashboard |
compose.navidrome.yml |
Navidrome | Subsonic-compatible music streaming server |
compose.homepage.yml |
Homepage | Dashboard with automatic Docker service discovery |
compose.backup.yml |
docker-volume-backup | Scheduled, encrypted, rotating backups with off-box copies |
Docker is the only dependency. Install it for your platform:
- Linux (Ubuntu/Debian): docs.docker.com/engine/install/ubuntu
- Linux (Fedora/RHEL): docs.docker.com/engine/install/fedora
- macOS: docs.docker.com/desktop/install/mac-install (Docker Desktop)
- Windows: docs.docker.com/desktop/install/windows-install (Docker Desktop)
After installing, verify Docker is running:
docker --version
docker compose versionYou need Docker Compose v2.20 or later (check with docker compose version). It ships with Docker Desktop and recent Docker Engine installs.
git clone https://github.com/your-username/homelab.git
cd homelabAll services communicate over a shared Docker network. Create it once:
docker network create nginx_proxy_manager_defaultCopy the example env file and fill in your values:
cp .env.example .envOpen .env in a text editor and update any values marked changeme.
Some values are shared by every service and live at the top of .env:
| Variable | Purpose |
|---|---|
TZ |
Timezone applied to all containers (defaults to America/Denver). See the tz database list. |
PUID / PGID |
User/group IDs for services that support dropping root privileges. Only Authelia uses these in the current stack; leave them empty to keep image defaults. |
Every compose file references these with a fallback (e.g. ${TZ:-America/Denver}), so the stack still starts even if you don't create a .env.
docker compose up -dThis starts Nginx Proxy Manager, Authelia, Redis, and Portainer in the background.
| App | URL | Default credentials |
|---|---|---|
| Nginx Proxy Manager | http://your-server-ip:81 | admin@example.com / changeme |
| Portainer | http://your-server-ip:9000 | Set on first visit |
Important: Change the NPM default password immediately after your first login.
Nginx Proxy Manager acts as the front door for all your apps. Instead of accessing services by IP and port number, you point domain names at your server and NPM routes traffic to the right container.
Internet → your-domain.com → your server (ports 80/443) → NPM → internal service
For each app you want to expose, create a DNS A record pointing to your server's IP address. You do this in your domain registrar or DNS provider (e.g. Cloudflare, Namecheap, Route 53).
vault.example.com → A → 203.0.113.10 (your server's public IP)
adminer.example.com → A → 203.0.113.10
portainer.example.com → A → 203.0.113.10
If all your subdomains point to the same server, a wildcard record is convenient:
*.example.com → A → 203.0.113.10
DNS changes can take a few minutes to propagate. You can check with:
nslookup vault.example.com- Open NPM at
http://your-server-ip:81 - Go to Hosts → Proxy Hosts → Add Proxy Host
- Fill in:
- Domain Names: your subdomain (e.g.
vault.example.com) - Scheme:
http - Forward Hostname / IP: the container name (e.g.
vaultwarden) - Forward Port: the app's internal port (see App-Specific Configuration)
- Domain Names: your subdomain (e.g.
- On the SSL tab, request a Let's Encrypt certificate and enable Force SSL
- Save
NPM will automatically obtain and renew the SSL certificate.
For apps that don't have their own login (like Adminer), add these lines under the Advanced tab in the NPM proxy host:
include /config/nginx/snippets/authelia-location.conf;
include /config/nginx/snippets/authelia-authrequest.conf;Do not add the Authelia snippets to Vaultwarden — it manages its own authentication and the native Bitwarden client apps need direct API access.
Optional apps are listed in the include: block at the bottom of docker-compose.yml:
include:
# - compose.mysql.yml # MySQL 8 + Adminer
# - compose.vaultwarden.yml # Vaultwarden (Bitwarden-compatible password manager)To enable an app: remove the # at the start of the line, then run:
docker compose up -dTo disable an app: add # back to the start of the line, then run:
docker compose down
docker compose up -dDisabling an app stops its containers but does not delete its data. Data is stored in local directories (e.g.
./vaultwarden_data/) and will be there when you re-enable it.
docker compose psdocker compose restart authelia
docker compose restart nginxproxymanager
docker compose restart portainerFor optional services:
docker compose restart vaultwarden
docker compose restart mysql
docker compose restart adminerdocker compose logs -f authelia
docker compose logs -f nginxproxymanagerdocker compose downdocker compose pull
docker compose up -dBackups run as a scheduled companion container
(offen/docker-volume-backup)
defined in compose.backup.yml. It archives your service data on a schedule,
encrypts it, rotates old archives, and can push a copy off-box to S3/WebDAV/SSH.
Enable it like any other optional app — uncomment its line in the include:
block and set a few values in .env:
BACKUP_CRON_EXPRESSION=@daily # when backups run
BACKUP_RETENTION_DAYS=7 # prune archives older than this
# Encrypt archives (they contain secrets!). Generate one with:
# openssl rand -base64 32
BACKUP_GPG_PASSPHRASE=your-passphrase-heredocker compose up -dArchives land in ./backups/ and the container schedules itself — no host cron
needed. See docs/backup.md for off-box destinations, database
consistency, and — most importantly — how to restore.
Per-app setup, environment variables, and configuration details live in the
docs/ directory:
| App | Documentation |
|---|---|
| Nginx Proxy Manager | docs/nginx-proxy-manager.md |
| Authelia | docs/authelia.md |
| Portainer | docs/portainer.md |
| MySQL + Adminer | docs/mysql.md |
| Vaultwarden | docs/vaultwarden.md |
| Home Assistant | docs/home-assistant.md |
| Pi-hole | docs/pi-hole.md |
| Plex | docs/plex.md |
| OliveTin | docs/olivetin.md |
| n8n | docs/n8n.md |
| Uptime Kuma | docs/uptimekuma.md |
| Navidrome | docs/navidrome.md |
| Homepage | docs/homepage.md |
You need to create the network first:
docker network create nginx_proxy_manager_defaultCheck its logs:
docker compose logs -f <service-name>- Make sure your DNS
Arecord is pointing to the correct server IP and has propagated - Make sure ports 80 and 443 on your router/firewall are forwarding to your server
- NPM needs to be reachable from the public internet on port 80 for the Let's Encrypt HTTP challenge