diff --git a/docker-compose-server.yml b/docker-compose-server.yml index a1677ae..0452b72 100644 --- a/docker-compose-server.yml +++ b/docker-compose-server.yml @@ -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配置