Files
server-core/serverrun/mysql/docker-compose.yml
T

25 lines
717 B
YAML
Raw 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.
# MySQL 服务(业务主库 + compute 库,首次启动由 init.sql 自动建库)
# 镜像走国内加速(docker.m.daocloud.io
services:
mysql:
image: docker.m.daocloud.io/library/mysql:8
container_name: opc-mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: sjnxhyjashaywiuwhaja
MYSQL_USER: opc
MYSQL_PASSWORD: jjjsgysyujkwjwgb
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- "8091:3306"
volumes:
- ../../serverdata/mysql-data:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
networks:
- opc-network
networks:
opc-network:
name: opc-network
external: true