Compare commits
2 Commits
ff53a85323
...
6aae1c80e4
Author | SHA1 | Date | |
---|---|---|---|
6aae1c80e4 | |||
1c5dc6cb12 |
10
Dockerfile
10
Dockerfile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user