Files
gangyan/mysql/docker-compose.yml

17 lines
558 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
mysql:
# 与此前运行的 mysql:8.4.4 一致,避免换镜像带来兼容问题
image: mysql:8.4.4
container_name: mysql-server
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "1234567890"
MYSQL_DATABASE: chat_LLM
MYSQL_ROOT_HOST: '%'
ports:
# 标准对外端口Java / 文档);容器内仍为 3306
- "33306:3306"
volumes:
# 实际数据在此目录(原 mysql-8.4.4 栈已在用),勿改用空的 ./mysql_bind
- ./mysql-8.4.4/mysql_bind:/var/lib/mysql