mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-07-20 02:27:50 +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 \
|
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" ]
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue