Files
computer-playbook/roles/sys-svc-docker
Kevin Veen-Birkenbach a312f353fb Refactor JVM memory filters, add Redis sizing and Docker cleanup service
- Replace jvm_filters with unified memory_filters (JVM + Redis helpers)
- Add redis_maxmemory_mb filter and unit tests
- Introduce sys-ctl-cln-docker role (systemd-based Docker prune + anon volumes)
- Refactor disk space health check to Python script and wire SIZE_PERCENT_CLEANUP_DISC_SPACE
- Adjust schedules and services for Docker cleanup and disk space health

See discussion: https://chatgpt.com/share/6925c1c5-ee38-800f-84b6-da29ccfa7537
2025-11-25 15:50:27 +01:00
..

Docker Server

Description

This role installs and maintains the Docker service, including Docker Compose, on Linux systems.
It is part of the Infinito.Nexus Project, maintained and developed by Kevin Veen-Birkenbach.

Overview

The role ensures that Docker and Docker Compose are present, integrates essential backup, repair, and health check roles, and supports cleanup or full reset modes for a fresh Docker environment.
When enabled via MODE_CLEANUP or MODE_RESET, it will automatically prune unused Docker resources.
MODE_RESET additionally restarts the Docker service after cleanup.

Features

  • Automated Installation
    Installs Docker and Docker Compose via the system package manager.

  • Integrated Dependencies
    Includes backup, repair, and health check sub-roles

  • Cleanup & Reset Modes

    • MODE_CLEANUP: Removes unused Docker containers, networks, images, and volumes.
    • MODE_RESET: Performs cleanup and restarts the Docker service.
  • Handler Integration
    Restart handler ensures the Docker daemon is reloaded when necessary.

License

This role is released under the Infinito.Nexus NonCommercial License (CNCL).
See license details.

Author Information

Kevin Veen-Birkenbach
Consulting & Coaching Solutions
https://www.veen.world