From 40de85a1ff92981c39ce7caca4e4f4007b9577e9 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 2 Oct 2023 12:14:56 +0200 Subject: [PATCH] mariadb deployment --- .gitignore | 2 ++ docker-compose.yml | 21 +++++++++++++++++++++ example.env | 15 +++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100644 example.env diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb58dee --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +data diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..26f1876 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +--- +services: + mariadb: + image: mariadb:${MARIADB_VERSION} + restart: unless-stopped + environment: + - MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD} + - MARIADB_USER=${MARIADB_USER} + - MARIADB_PASSWORD=${MARIADB_PASSWORD} + - MARIADB_DATABASE=${MARIADB_DATABASE} + labels: + ### Section Diun + - diun.enable=${DIUN_ENABLE} + - diun.watch_repo=${DIUN_WATCHREPO} + - diun.sort_tags=${DIUN_SORTALGO} + - diun.include_tags=${DIUN_INCLUDE} + - diun.exclude_tags=${DIUN_EXCLUDE} + ports: + - ${MARIADB_EXPOSE}:3306 + volumes: + - ${MARIADB_DATA}:/var/lib/mysql diff --git a/example.env b/example.env new file mode 100644 index 0000000..ad18771 --- /dev/null +++ b/example.env @@ -0,0 +1,15 @@ +# MariaDB +MARIADB_VERSION=11.1.2 +MARIADB_DATA=./data +MARIADB_EXPOSE=127.0.0.1:3306 +MARIADB_ROOT_PASSWORD=r00t +MARIADB_DATABASE=mariadb +MARIADB_USER=mariadb-user +MARIADB_PASSWORD=passw0rd + +# Diun +DIUN_ENABLE=true +DIUN_WATCHREPO=true +DIUN_SORTALGO=semver +DIUN_INCLUDE= +DIUN_EXCLUDE=