Sys-stk-backend Role

Description: Docker Compose stack for containerized relational databases with backup, user, and permission management

Variables

  • author: Kevin Veen-Birkenbach

  • description: Docker Compose stack for containerized relational databases with backup, user, and permission management

  • company: Kevin Veen-Birkenbach https://www.veen.world

  • license: Infinito.Nexus Community License (Non-Commercial)

  • galaxy_tags: [‘docker’, ‘database’, ‘rdbms’, ‘backup’, ‘compose’]

  • min_ansible_version: 2.9

  • platforms: [{‘name’: ‘ArchLinux’, ‘versions’: [‘all’]}, {‘name’: ‘Debian’, ‘versions’: [‘all’]}, {‘name’: ‘EL’, ‘versions’: [‘all’]}, {‘name’: ‘Fedora’, ‘versions’: [‘all’]}, {‘name’: ‘Ubuntu’, ‘versions’: [‘all’]}]

README

Database Docker Composition

Description

This role combines the central RDBMS role (sys-svc-rdbms) with Docker Compose to deliver a ready-to-use containerized database environment.

Overview

This role combines Docker Compose with a central RDBMS role to automatically provision database containers with backup, user, and permission management.

Cosmos

The diagram places Database Docker Composition in the Infinito.Nexus cosmos: the components it deploys (capabilities), the central services it consumes (dependencies), and its outward reach (federation and bridged external networks).

flowchart LR
    subgraph role [sys-stk-backend 💻]
        svc_backend["backend"]
    end

Solid 1:1 edges are fixed relationships; dashed 0..1 edges are conditional (enabled only in matching deployments); red 0..0 edges are turned off in this role. Node markers show the role’s deploy modes (💻 host, 🐳 compose, 🐝 swarm); ❌ marks a service that is explicitly turned off, and ⚙️ an Ansible role dependency declared in meta/main.yml.

Features

  • Central RDBMS Integration
    Includes the sys-svc-rdbms role, which handles backups, restores, user and permission management for your relational database system (PostgreSQL, MariaDB, etc.).
  • Docker Compose
    Utilizes the standalone compose role to define and bring up containers, networks, and volumes automatically.

The role will load both sub-roles and satisfy all dependencies transparently.

Task Breakdown

  1. Set Fact database_application_id to work around lazy‐loading ordering.

  2. Include Vars in the specified order.

  3. Invoke compose role to create containers, networks, and volumes.

  4. Invoke sys-svc-rdbms role to provision the database, backups, and users.

Credits

Implemented by Kevin Veen-Birkenbach. Part of the Infinito.Nexus Project and maintained by Kevin Veen-Birkenbach. Licensed under the Infinito.Nexus Community License (Non-Commercial).