Created
March 27, 2023 13:47
-
-
Save aimerneige/ee01caec1950cb5e9fab143e2dad8fbc to your computer and use it in GitHub Desktop.
docker mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mysql: | |
image: mysql:latest | |
container_name: dev_mysql | |
restart: always | |
ports: | |
- "3306:3306" | |
volumes: | |
- ./data/db:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: "root123" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment