mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
Update MySQL 8.0 to 8.4 LTS, fix Trivy tag count
This commit is contained in:
@@ -490,7 +490,7 @@ volumes:
|
||||
```yaml
|
||||
services:
|
||||
my_src:
|
||||
image: mysql:8.0
|
||||
image: mysql:8.4
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
|
||||
|
||||
@@ -28,13 +28,13 @@ services:
|
||||
# 数据库服务
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
image: mysql:8.4
|
||||
container_name: wordpress_db
|
||||
restart: always
|
||||
command:
|
||||
# 使用原生密码认证(旧版 WP 兼容性)
|
||||
# 启用原生密码认证(MySQL 8.4 默认禁用,旧版 WP 兼容性需要)
|
||||
|
||||
- --default-authentication-plugin=mysql_native_password
|
||||
- --mysql-native-password=ON
|
||||
- --character-set-server=utf8mb4
|
||||
- --collation-server=utf8mb4_unicode_ci
|
||||
environment:
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
services:
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
image: mysql:8.4
|
||||
command:
|
||||
- --default_authentication_plugin=mysql_native_password
|
||||
- --mysql-native-password=ON
|
||||
- --character-set-server=utf8mb4
|
||||
- --collation-server=utf8mb4_unicode_ci
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user