Last active
July 26, 2025 03:43
-
-
Save orange723/b021ce0c07e94b4dddaf9515c8551b62 to your computer and use it in GitHub Desktop.
mysql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
mysql: | |
container_name: mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: 12345678 | |
image: mysql:5.7.43 | |
ports: | |
- "3306:3306" | |
restart: always | |
volumes: | |
- ./data:/var/lib/mysql | |
- ./docker.cnf:/etc/mysql/conf.d/docker.cnf | |
- /etc/localtime:/etc/localtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
max_connections = 1024 | |
max_connect_errors = 1000000 | |
character_set_server = UTF8MB4 | |
skip-host-cache | |
skip-name-resolve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment