Skip to content

Instantly share code, notes, and snippets.

@isaacharrisholt
Created October 8, 2022 13:04
Show Gist options
  • Save isaacharrisholt/f6516949921df18d70dd05b7f89aadce to your computer and use it in GitHub Desktop.
Save isaacharrisholt/f6516949921df18d70dd05b7f89aadce to your computer and use it in GitHub Desktop.
A simple docker-compose file for a MySQL database
services:
db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: default
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3306:3306"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment