20 lines
510 B
YAML
20 lines
510 B
YAML
|
|
services:
|
||
|
|
mysql:
|
||
|
|
image: mysql:8.0.46
|
||
|
|
container_name: authserver-mysql
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- "3000:3306"
|
||
|
|
environment:
|
||
|
|
MYSQL_ROOT_PASSWORD: root123456
|
||
|
|
MYSQL_DATABASE: authserver
|
||
|
|
MYSQL_USER: auth
|
||
|
|
MYSQL_PASSWORD: auth
|
||
|
|
TZ: Asia/Shanghai
|
||
|
|
command:
|
||
|
|
- --character-set-server=utf8mb4
|
||
|
|
- --collation-server=utf8mb4_unicode_ci
|
||
|
|
- --default-authentication-plugin=mysql_native_password
|
||
|
|
volumes:
|
||
|
|
- ./data/mysql:/var/lib/mysql
|