Compare commits

..

2 Commits

Author SHA1 Message Date
6aae1c80e4 feature(dockerfile): add basic healthcheck
- check mysqld service only, not actual database
2021-09-07 03:06:20 -06:00
1c5dc6cb12 feature(dockerfile): bump alpine base version
- also bumps MariaDB base version
2021-09-07 01:58:23 -06:00

View File

@ -2,7 +2,7 @@
### mariadb running on Alpine Linux ### mariadb running on Alpine Linux
# #
FROM alpine:3.13 FROM alpine:3.14
# standardized labels # standardized labels
MAINTAINER Asif Bacchus <asif@asifbacchus.dev> MAINTAINER Asif Bacchus <asif@asifbacchus.dev>
@ -30,6 +30,14 @@ EXPOSE 3306
# create volume if user forgets # create volume if user forgets
VOLUME ["/var/lib/mysql"] VOLUME ["/var/lib/mysql"]
# basic healthcheck (service only)
HEALTHCHECK \
--interval=30s \
--timeout=10s \
--start-period=30s \
--retries=3 \
CMD mysqladmin ping --silent
# set environment variables # set environment variables
ENV TZ=Etc/UTC ENV TZ=Etc/UTC
ENV MYSQL_UID=8100 ENV MYSQL_UID=8100