Fix Docker command examples and log management instructions

Co-authored-by: kelinfoxy <67766943+kelinfoxy@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-11 22:59:06 +00:00
parent 9b466145c3
commit 0611ddbff4
2 changed files with 13 additions and 4 deletions

View File

@@ -476,11 +476,15 @@ sudo netstat -tlnp | grep PORT_NUMBER
# Check disk usage
df -h
# Clean up Docker resources
# Clean up Docker resources (removes unused images, containers, networks)
docker system prune -a
# Remove old logs
docker compose logs --tail=0 service-name
# To manage log size, configure log rotation in compose files:
# logging:
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "3"
```
## Getting Help

View File

@@ -381,7 +381,12 @@ docker compose -f docker-compose/development.yml up -d
- Watchtower checks for updates at 4 AM
### Weekly
- Review logs: `docker compose -f docker-compose/*.yml logs --tail=100`
- Review logs for each stack:
```bash
docker compose -f docker-compose/infrastructure.yml logs --tail=100
docker compose -f docker-compose/media.yml logs --tail=100
docker compose -f docker-compose/monitoring.yml logs --tail=100
```
- Check disk space: `docker system df`
### Monthly