extract command from the entrypoint

This commit is contained in:
Fco. Javier Delgado del Hoyo 2023-09-16 10:00:00 +02:00
parent f8b2f8f1ba
commit 299d343e17
2 changed files with 3 additions and 1 deletions

View file

@ -44,4 +44,5 @@ VOLUME ["/backup"]
HEALTHCHECK --interval=2s --retries=1800 \ HEALTHCHECK --interval=2s --retries=1800 \
CMD stat /HEALTHY.status || exit 1 CMD stat /HEALTHY.status || exit 1
ENTRYPOINT dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT} /run.sh ENTRYPOINT dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT}
CMD [ "/run.sh" ]

View file

@ -16,6 +16,7 @@ services:
backup: backup:
build: . build: .
image: fradelg/mysql-cron-backup image: fradelg/mysql-cron-backup
command: /backup.sh
depends_on: depends_on:
- mariadb - mariadb
volumes: volumes: