Created
November 30, 2022 10:00
-
-
Save jose16-21/ec4ee7395eb66fae0250fa10d92aa158 to your computer and use it in GitHub Desktop.
docker-compose mysql
This file contains hidden or 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.3' | |
services: | |
mysql: | |
image: mysql | |
restart: always | |
container_name: mysql | |
environment: | |
MYSQL_DATABASE: db | |
MYSQL_USER: test | |
MYSQL_PASSWORD: root | |
MYSQL_ROOT_PASSWORD: root | |
ports: | |
- '3306:3306' | |
networks: | |
default: | |
name: mynetwork | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment