homelab/tasks/mariadb.yml
Renovate Bot 8abedce477
Some checks failed
Deploy / Prepare Build (push) Failing after 3m14s
chore(deps): update ghcr.io/linuxserver/mariadb docker tag to v10.11.10
| datasource | package                     | from    | to       |
| ---------- | --------------------------- | ------- | -------- |
| docker     | ghcr.io/linuxserver/mariadb | 10.11.8 | 10.11.10 |
2024-11-04 00:01:54 +00:00

29 lines
637 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:10.11.10
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"