Docker 挂载提权

v1.4.1
hiparker 4 years ago
parent 3358e1f3a3
commit 95706edc42

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

Loading…
Cancel
Save