homelab/tasks/mariadb.yml
Renovate Bot d97c6b1b24
All checks were successful
Deploy / Prepare Build (push) Successful in 1m32s
chore(deps): update ghcr.io/linuxserver/mariadb docker tag to v11.4.5
| datasource | package                     | from   | to     |
| ---------- | --------------------------- | ------ | ------ |
| docker     | ghcr.io/linuxserver/mariadb | 11.4.4 | 11.4.5 |
2025-02-24 16:01:33 +00:00

29 lines
635 B
YAML

---
- name: Set Facts
set_fact:
container_name: 'mariadb'
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/mariadb"
- "{{ data_folder }}/mariadb/config"
- name: Create the mariadb container
docker_container:
name: "mariadb"
image: ghcr.io/linuxserver/mariadb:11.4.5
restart_policy: unless-stopped
recreate: true
ports:
- 3306:3306
env:
PUID: "0"
PGID: "0"
MYSQL_ROOT_PASSWORD: "{{MYSQL_ROOT_PASSWORD}}"
TZ: "Australia/Brisbane"
volumes:
- "{{ data_folder }}/mariadb/config:/config"