Skip to content

Instantly share code, notes, and snippets.

@RayanFar
Created September 9, 2023 19:16
Show Gist options
  • Save RayanFar/95c80d38f37676a9ffcab5268b488095 to your computer and use it in GitHub Desktop.
Save RayanFar/95c80d38f37676a9ffcab5268b488095 to your computer and use it in GitHub Desktop.
mysql docker compose file
version: '3'
services:
database:
image: mysql
container_name: database.dev
command: mysqld --user=root --verbose
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: "test"
MYSQL_USER: "test"
MYSQL_PASSWORD: "test"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment