Compare commits
2 Commits
7220e08109
...
92c3bcf27e
Author | SHA1 | Date |
---|---|---|
Philipp Rothmann | 92c3bcf27e | |
Philipp Rothmann | 5c4f6098bf |
15
compose.yml
15
compose.yml
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue