Skip to content

Instantly share code, notes, and snippets.

@ncronquist
Created April 19, 2023 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncronquist/c7b662f27410459b7a1796a714d0b217 to your computer and use it in GitHub Desktop.
Save ncronquist/c7b662f27410459b7a1796a714d0b217 to your computer and use it in GitHub Desktop.
Local MySQL with Docker-Compose
version: "3"
services:
mysql:
container_name: mysql
image: mysql:5.7
command: "--character-set-server=utf8 --collation-server=utf8_unicode_ci"
volumes:
- db-data:/var/lib/mysql
- /var/run/mysqld:/var/run/mysqld
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- "3306:3306"
volumes:
db-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment