|
|
|
@ -19,7 +19,6 @@ services:
|
|
|
|
|
--lower_case_table_names=1
|
|
|
|
|
--max_allowed_packet=128M
|
|
|
|
|
--default-authentication-plugin=caching_sha2_password
|
|
|
|
|
privileged: true
|
|
|
|
|
volumes:
|
|
|
|
|
- /var/mysql/data:/var/lib/mysql #挂载 MySQL数据
|
|
|
|
|
ports:
|
|
|
|
@ -34,7 +33,6 @@ services:
|
|
|
|
|
TZ: Asia/Shanghai
|
|
|
|
|
LANG: en_US.UTF-8
|
|
|
|
|
command: redis-server /usr/local/etc/redis/redis.conf --appendonly yes # 表示通过挂载配置文件追加配置
|
|
|
|
|
privileged: true
|
|
|
|
|
volumes:
|
|
|
|
|
- /var/redis/data:/data #挂载 Redis数据
|
|
|
|
|
- /var/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf #挂载 Redis配置
|
|
|
|
|