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=