Skip to content

Instantly share code, notes, and snippets.

@michaelcaxias
Last active October 19, 2022 19:50
Show Gist options
  • Save michaelcaxias/c916f8b65a710b0dfcc6eba8eb472bd9 to your computer and use it in GitHub Desktop.
Save michaelcaxias/c916f8b65a710b0dfcc6eba8eb472bd9 to your computer and use it in GitHub Desktop.
Docker Compose for MySQL
version: '3.9'
services:
db:
image: mysql:latest
container_name: mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=123456
restart: 'always'
@michaelcaxias
Copy link
Author

add line

platform: linux/amd64

if using M1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment