mirror of
https://gitee.com/markliu2013/docker-compose-moneynote.git
synced 2024-11-17 20:58:02 +08:00
save
This commit is contained in:
parent
7635f7682f
commit
0ceabdc7a4
@ -15,6 +15,8 @@ services:
|
|||||||
]
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- moneywhere_mysql_data:/var/lib/mysql
|
- moneywhere_mysql_data:/var/lib/mysql
|
||||||
|
ports:
|
||||||
|
- "43740:3306"
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
|
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
|
||||||
|
@ -15,6 +15,8 @@ services:
|
|||||||
]
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- moneywhere_mysql_data:/var/lib/mysql
|
- moneywhere_mysql_data:/var/lib/mysql
|
||||||
|
ports:
|
||||||
|
- "43740:3306"
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
image: phpmyadmin/phpmyadmin
|
image: phpmyadmin/phpmyadmin
|
||||||
|
@ -15,6 +15,8 @@ services:
|
|||||||
]
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- moneywhere_mysql_data:/var/lib/mysql
|
- moneywhere_mysql_data:/var/lib/mysql
|
||||||
|
ports:
|
||||||
|
- "43740:3306"
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
|
image: registry.cn-hangzhou.aliyuncs.com/moneywhere/phpmyadmin:latest
|
||||||
|
@ -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
|
|
@ -1,2 +0,0 @@
|
|||||||
CREATE DATABASE IF NOT EXISTS moneywhere CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
|
||||||
USE moneywhere;
|
|
14
mysql/my.cnf
14
mysql/my.cnf
@ -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
|
|
Loading…
Reference in New Issue
Block a user