Created
April 10, 2022 12:01
-
-
Save MinSomai/f17062587db0f4ca0d5b864831c03d55 to your computer and use it in GitHub Desktop.
Initial SQL data import - Docker 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
mysql: | |
image: mysql:latest | |
container_name: mysql-container | |
ports: | |
- 3306:3306 | |
volumes: | |
- ./dump.sql:/docker-entrypoint-initdb.d/dump.sql | |
environment: | |
MYSQL_ROOT_PASSWORD: secret | |
MYSQL_DATABASE: name_db | |
MYSQL_USER: user | |
MYSQL_PASSWORD: password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment