mariadb.yml aktualisiert
This commit is contained in:
parent
06c31d967f
commit
3ca7317728
@ -96,13 +96,14 @@
|
|||||||
# restart if new cert ist available
|
# restart if new cert ist available
|
||||||
if [ -n "$new" ]
|
if [ -n "$new" ]
|
||||||
then
|
then
|
||||||
|
# start mariadb if not initialized and down
|
||||||
|
[ -s "db-data/mysql_upgrade_info" ] || docker compose up -d mariadb.{{inventory_hostname}}
|
||||||
# wait if mariadb is not finished while initializing
|
# wait if mariadb is not finished while initializing
|
||||||
until [ -s "db-data/mysql_upgrade_info" ]
|
until [ -s "db-data/mysql_upgrade_info" ]
|
||||||
do
|
do
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
docker compose down
|
docker compose up -d --force-recreate
|
||||||
docker compose up -d
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
backup: yes
|
backup: yes
|
||||||
@ -215,7 +216,7 @@
|
|||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
backup: yes
|
backup: yes
|
||||||
notify: Restart mariadb
|
notify: Restart mariadb
|
||||||
|
|
||||||
- name: Get letsencrypt cert from traefik
|
- name: Get letsencrypt cert from traefik
|
||||||
|
Loading…
Reference in New Issue
Block a user