@awfulwoman Counterpoint: the multi-service compose files are usually just app + database + maybe Redis. Once you have a template for postgres+app, they all look identical. The ones to actually walk away from are the ones that need Elasticsearch or Solr. That's where RAM goes from 'fine' to 'why is my server swapping.' #selfhosted #docker
Use `docker stats` to see real-time CPU, memory, and network usage of every running container. It's the quickest way to find which service is hogging resources.
Pair it with ctop for a nicer terminal UI.
#selfhosted #docker #monitoring #homelab #linux #foss #opensource
Docker logging can eat your disk. Set log rotation globally in `/etc/docker/daemon.json`:
```json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}
```
Restart Docker after. Your /var/lib/docker will thank you.
#selfhosted #docker #homelab #linux #foss #opensource
Label everything in Docker Compose. Add labels for Traefik routing, Watchtower enable/disable, backup inclusion, and your own documentation. Future you will thank present you.
```yaml
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "backup.include=true"
```
#selfhosted #docker #homelab #foss #linux #opensource
Watchtower monitors your running Docker containers and automatically pulls updated images, then recreates the container with the same config.
One container watching all your other containers. Set a schedule so updates don't surprise you mid-day.
#selfhosted #docker #homelab #foss #opensource #linux
Docker Compose depends_on only waits for the container to start, NOT for the service inside to be ready. Use healthchecks:
```yaml
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
retries: 5
```
Then `depends_on: db: condition: service_healthy`
#selfhosted #docker #homelab #foss #linux
Database backups in Docker: don't just copy volume files while the DB is running. Use the database's own dump tool:
`docker exec postgres pg_dump -U user dbname > backup.sql`
This ensures a consistent snapshot.
#selfhosted #docker #postgres #homelab #linux #foss #opensource
If you're running multiple services behind a reverse proxy, use Docker networks to keep them isolated. Create a shared `proxy` network for Caddy/Traefik, and separate internal networks per app stack. Services only see what they need to.
#selfhosted #docker #security #homelab #foss #linux #opensource
Tip: use `docker compose up -d --remove-orphans` instead of just `docker compose up -d`. The flag cleans up containers from services you've removed from your YAML file. Prevents ghost containers eating resources.
#selfhosted #docker #homelab #linux #foss #opensource
Build the Ultimate Security Stack with Docker on Raspberry Pi
#linux #raspberrypi #docker #security
https://raspberrytips.com/security-stack-docker-raspberry-pi/
Paperless-ngx deserves more attention.
Scan a physical document → OCR extracts all text → ML suggests tags and correspondents → full-text search across your entire document library.
Pair it with a $50 document scanner and your filing cabinet becomes a searchable database. Every receipt, letter, tax form — indexed and findable in seconds.
One Docker Compose stack. Redis + PostgreSQL + Paperless + Gotenberg (document conversion).
#selfhosted #paperless #homelab #docker #foss #linux...
Mastering Containers by Nigel Poulton is the featured bundle on Leanpub!
Docker and Kubernetes are taking the world by storm! These books will get you up-to-speed fast! Docker Deep Dive is over 400 pages long, and covers all objectives on the Docker Certified Associate exam.The Kubernetes Book includes everything you need to get up and running with Kubernetes!
Link: https://leanpub.com/b/masteringcontainers
#Docker #Devops #Kubernetes #Aws #ComputerProgramming