mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-06-28 07:36:40 +00:00
extract command from the entrypoint
This commit is contained in:
parent
f8b2f8f1ba
commit
299d343e17
2 changed files with 3 additions and 1 deletions
|
@ -44,4 +44,5 @@ VOLUME ["/backup"]
|
|||
HEALTHCHECK --interval=2s --retries=1800 \
|
||||
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" ]
|
|
@ -16,6 +16,7 @@ services:
|
|||
backup:
|
||||
build: .
|
||||
image: fradelg/mysql-cron-backup
|
||||
command: /backup.sh
|
||||
depends_on:
|
||||
- mariadb
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue