Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68cda6c1be | ||
|
|
c273310465 | ||
|
|
102e30bdb3 | ||
|
|
8e083ae393 | ||
|
|
67cafcf798 | ||
|
|
92a2a40404 |
@@ -2,3 +2,8 @@
|
||||
截取自 https://github.com/yeszao/dnmp 部分配置修改了下
|
||||
|
||||
**注意,不要忘记修改密码**
|
||||
|
||||
建立 dnmp_network 网络
|
||||
~~~
|
||||
docker network create dnmp_network
|
||||
~~~
|
||||
|
||||
+5
-4
@@ -2,7 +2,7 @@ version: "3"
|
||||
services:
|
||||
|
||||
mysql:
|
||||
# image: mysql:8.0.36
|
||||
# image: mysql:8.0.46
|
||||
image: mysql:5.7.44
|
||||
container_name: mysql
|
||||
ports:
|
||||
@@ -22,15 +22,16 @@ services:
|
||||
|
||||
redis:
|
||||
# image: redis:7.2-alpine
|
||||
image: redis:alpine
|
||||
image: redis:8-alpine
|
||||
container_name: redis
|
||||
ports:
|
||||
- "127.0.0.1:6379:6379"
|
||||
volumes:
|
||||
- ./redis/conf/redis.conf:/etc/redis.conf:ro
|
||||
- ./redis/conf/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||
- ./redis/data:/data/:rw
|
||||
restart: always
|
||||
entrypoint: ["redis-server", "/etc/redis.conf"]
|
||||
# entrypoint: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
environment:
|
||||
TZ: "Asia/Shanghai"
|
||||
networks:
|
||||
|
||||
+21
-17
@@ -1,29 +1,33 @@
|
||||
[client]
|
||||
port = 3306
|
||||
default-character-set = utf8mb4
|
||||
port = 3306
|
||||
default-character-set = utf8mb4
|
||||
|
||||
|
||||
[mysqld]
|
||||
user = mysql
|
||||
port = 3306
|
||||
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
||||
port = 3306
|
||||
user = mysql
|
||||
|
||||
default-storage-engine = InnoDB
|
||||
default-authentication-plugin = mysql_native_password
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
init_connect = 'SET NAMES utf8mb4'
|
||||
sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
||||
|
||||
default-storage-engine = InnoDB
|
||||
default-authentication-plugin = mysql_native_password
|
||||
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
|
||||
disable-log-bin
|
||||
skip-character-set-client-handshake
|
||||
|
||||
skip-log-bin
|
||||
|
||||
explicit_defaults_for_timestamp
|
||||
|
||||
slow_query_log
|
||||
long_query_time = 3
|
||||
slow-query-log-file = /var/log/mysql/mysql.slow.log
|
||||
log-error = /var/log/mysql/mysql.error.log
|
||||
slow_query_log = 1
|
||||
long_query_time = 3
|
||||
slow_query_log_file = /var/log/mysql/mysql.slow.log
|
||||
log_error = /var/log/mysql/mysql.error.log
|
||||
|
||||
default-time-zone = '+8:00'
|
||||
|
||||
default-time-zone = '+8:00'
|
||||
|
||||
[mysql]
|
||||
default-character-set = utf8mb4
|
||||
default-character-set = utf8mb4
|
||||
|
||||
Reference in New Issue
Block a user