Compare commits

...

2 Commits

Author SHA1 Message Date
Philipp Rothmann 92c3bcf27e chore: cleanup
continuous-integration/drone/push Build is passing Details
2023-04-24 11:50:41 +02:00
Philipp Rothmann 5c4f6098bf fix: backupbot labels 2023-04-24 11:49:38 +02:00
1 changed files with 9 additions and 6 deletions

View File

@ -36,7 +36,6 @@ services:
- admin_password
depends_on:
- db
#entrypoint: ['tail', '-f', '/dev/null']
entrypoint: /docker-entrypoint.sh
#healthcheck:
# test: curl -s -o /dev/null http://localhost:8001 || exit 1
@ -79,18 +78,19 @@ services:
# start_period: 10s
# timeout: 10s
# retries: 3
deploy:
labels:
- backupbot.backup="true"
- backupbot.backup.pre-hook='mkdir -p /tmp/backup/ && mysqldump --single-transaction -u root -p"$$(cat /run/secrets/db_root_password)" kimai > /tmp/backup/backup.sql'
- backupbot.backup.post-hook="rm -rf /tmp/backup"
- backupbot.backup.path="/tmp/backup/"
- "backupbot.backup=true"
- "backupbot.backup.pre-hook=sh -c 'mysqldump --single-transaction -u root -p\"$$(cat /run/secrets/db_root_password)\" kimai > /tmp/backup.sql'"
- "backupbot.backup.post-hook=rm -rf /tmp/backup.sql"
- "backupbot.backup.path=/tmp/backup.sql"
volumes:
kimai_var:
kimai_public:
mariadb:
secrets:
db_password:
external: true
@ -101,10 +101,13 @@ secrets:
admin_password:
external: true
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
networks:
proxy:
external: true
internal:
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}