This commit is contained in:
markliu2013 2024-01-15 21:20:54 +08:00
parent 7635f7682f
commit 0ceabdc7a4
6 changed files with 6 additions and 34 deletions

View File

@ -15,6 +15,8 @@ services:
]
volumes:
- moneywhere_mysql_data:/var/lib/mysql
ports:
- "43740:3306"
phpmyadmin:
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest

View File

@ -15,6 +15,8 @@ services:
]
volumes:
- moneywhere_mysql_data:/var/lib/mysql
ports:
- "43740:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin

View File

@ -15,6 +15,8 @@ services:
]
volumes:
- moneywhere_mysql_data:/var/lib/mysql
ports:
- "43740:3306"
phpmyadmin:
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest

View File

@ -1,18 +0,0 @@
#FROM mysql:5.7
FROM registry.cn-hangzhou.aliyuncs.com/moneywhere/mysql:5.7
#ARG TZ=UTC
#ENV TZ ${TIMEZONE}
#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
COPY init.sql /data/1.sql
RUN chmod 0444 /etc/mysql/conf.d/my.cnf
RUN chmod 0444 /data/1.sql
RUN chown $(whoami) /data/1.sql
RUN chgrp $(whoami) /data/1.sql
CMD ["mysqld"]
EXPOSE 3306

View File

@ -1,2 +0,0 @@
CREATE DATABASE IF NOT EXISTS moneywhere CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE moneywhere;

View File

@ -1,14 +0,0 @@
# The MySQL Client configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
[mysql]
[mysqld]
character-set-server=utf8mb4
#default-time-zone='+8:00'
#innodb_rollback_on_timeout='ON'
#max_connections=500
#innodb_lock_wait_timeout=500
default-authentication-plugin=mysql_native_password