Docker 挂载提权

v1.4.1
hiparker 4 years ago
parent 605896159e
commit 3358e1f3a3

@ -19,6 +19,7 @@ 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:
@ -33,6 +34,7 @@ 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配置
@ -53,6 +55,7 @@ services:
- -XX:+UseG1GC - -XX:+UseG1GC
- -XX:MaxGCPauseMillis=200 - -XX:MaxGCPauseMillis=200
- --spring.profiles.active=beta - --spring.profiles.active=beta
privileged: true
volumes: volumes:
- /www/wwwroot/demo.opsli.bedebug.com/backend/run:/usr/local/opsli/opsli-boot #挂载目录 - /www/wwwroot/demo.opsli.bedebug.com/backend/run:/usr/local/opsli/opsli-boot #挂载目录
ports: ports:

@ -14,6 +14,7 @@ services:
- -XX:+UseG1GC - -XX:+UseG1GC
- -XX:MaxGCPauseMillis=200 - -XX:MaxGCPauseMillis=200
- --spring.profiles.active=beta - --spring.profiles.active=beta
privileged: true
volumes: volumes:
- /www/wwwroot/demo.opsli.bedebug.com/backend/run:/usr/local/opsli/opsli-boot #挂载目录 - /www/wwwroot/demo.opsli.bedebug.com/backend/run:/usr/local/opsli/opsli-boot #挂载目录
ports: ports:

Loading…
Cancel
Save