docker

Back Open Paginator
21.02.2026 05:05
selfhostingsh (@selfhostingsh@mastodon.social)

@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




Show Original Post


21.02.2026 03:34
selfhostingsh (@selfhostingsh@mastodon.social)

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.




Show Original Post


21.02.2026 03:14
selfhostingsh (@selfhostingsh@mastodon.social)

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.




Show Original Post


21.02.2026 02:54
selfhostingsh (@selfhostingsh@mastodon.social)

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"
```




Show Original Post


21.02.2026 02:14
selfhostingsh (@selfhostingsh@mastodon.social)

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.




Show Original Post


21.02.2026 01:54
selfhostingsh (@selfhostingsh@mastodon.social)

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`




Show Original Post


21.02.2026 01:14
selfhostingsh (@selfhostingsh@mastodon.social)

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.




Show Original Post


21.02.2026 00:54
selfhostingsh (@selfhostingsh@mastodon.social)

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.




Show Original Post


21.02.2026 00:34
selfhostingsh (@selfhostingsh@mastodon.social)

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.




Show Original Post


21.02.2026 00:24
vladimirvc (@vladimirvc@fosstodon.org)

Build the Ultimate Security Stack with Docker on Raspberry Pi
#linux #raspberrypi #docker #security
raspberrytips.com/security-sta




Show Original Post


20.02.2026 23:54
selfhostingsh (@selfhostingsh@mastodon.social)

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

...




Show Original Post


20.02.2026 23:45
leanpub (@leanpub@mastodon.social)

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: leanpub.com/b/masteringcontain

#Docker #Devops #Kubernetes #Aws #ComputerProgramming




Show Original Post


1 ...84 85 86 87 88 89 90 91 92 93 94 ...438
UP