Created
November 8, 2020 04:37
-
-
Save roshanadh/ac1c65e361375361c76f1296d22493bb to your computer and use it in GitHub Desktop.
Initialize db service
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.8" | |
services: | |
db: | |
image: mysql:5.7 | |
container_name: mysql | |
restart: always | |
volumes: | |
- ./mysql-dump:/var/lib/mysql | |
- ./mysql-init:/docker-entrypoint-initdb.d | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: contactbook | |
MYSQL_USER: user | |
MYSQL_PASSWORD: pass | |
ports: | |
- "3306:3306" | |
pma: | |
web: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment