mariadb deployment
This commit is contained in:
parent
25c93ff631
commit
40de85a1ff
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.env
|
||||
data
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal 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
15
example.env
Normal 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=
|
Loading…
Reference in New Issue
Block a user