mariadb deployment

This commit is contained in:
Bryan Joshua Pedini 2023-10-02 12:14:56 +02:00
parent 25c93ff631
commit 40de85a1ff
3 changed files with 38 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
data

21
docker-compose.yml Normal file
View File

@ -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

15
example.env Normal file
View File

@ -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=