Created
May 5, 2020 16:17
-
-
Save helciodasilva/246e266169dc9d41690856e8c156398e to your computer and use it in GitHub Desktop.
Container 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
version: '3.4' | |
services: | |
mysql: | |
image: mysql:5.7 | |
container_name: mysql | |
command: mysqld --sql_mode="" --lower_case_table_names=1 | |
volumes: | |
- ./sql:/docker-entrypoint-initdb.d | |
environment: | |
- MYSQL_ROOT_PASSWORD=teste | |
ports: | |
- "3306:3306" | |
healthcheck: | |
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] | |
timeout: 20s | |
retries: 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment