This role runs a mariadb instance on docker.
Use it on a machine setup with ansible role sleif.docker.
- container_storage_dir_base: '/srv' (don't place it on NFS volume)
- container_storage_dir_base_backup: '/srv'
- mariadb_container_max_connections: '512'
- mariadb_container_exposed_port: '3306'
- docker_network_name (can be defined in sleif.docker)
Needs geerlingguy.docker to make sure Docker is available. Needs sleif.docker to make sure Docker is configured as needed.
- hosts: "server"
user: root
vars:
docker_network_name: 'custom_docker_network'
roles:
- { role: sleif.mariadb_docker, tags: "mariadb_docker" }
MIT
Created in 2021 by Sebastian Berthold