add slave1

This commit is contained in:
Ludovic CANDELLIER
2024-01-22 23:04:23 +01:00
parent 1533c18c54
commit 1677ec6b03
2 changed files with 35 additions and 0 deletions

20
docker/mysql-slave1/Dockerfile Executable file
View File

@@ -0,0 +1,20 @@
ARG MYSQL_VERSION
FROM mysql:${MYSQL_VERSION}
LABEL maintainer="Ludovic CANDELLIER <ludo@huma.net>"
#####################################
# Set Timezone
#####################################
ARG TZ=UTC
ENV TZ ${TZ}
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/
COPY my.cnf /etc/mysql/conf.d/my.cnf
RUN chmod 0444 /etc/mysql/conf.d/my.cnf
CMD ["mysqld"]
EXPOSE 3306