Skip to content

Instantly share code, notes, and snippets.

@helciodasilva
Created May 5, 2020 16:17
Show Gist options
  • Save helciodasilva/246e266169dc9d41690856e8c156398e to your computer and use it in GitHub Desktop.
Save helciodasilva/246e266169dc9d41690856e8c156398e to your computer and use it in GitHub Desktop.
Container MySQL
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