Last active
July 24, 2018 19:58
-
-
Save lasekmiroslaw/46badee59c1b6bcc182562a372917c76 to your computer and use it in GitHub Desktop.
docker mysql + phpmyadmin
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: '2' | |
services: | |
db: | |
image: mysql:5.7 | |
ports: | |
- "3306:3306" | |
volumes: | |
- ./mysqldata:/var/lib/mysql:rw,delegated | |
environment: | |
MYSQL_ROOT_PASSWORD: "root" | |
MYSQL_DATABASE: "symfony" | |
MYSQL_USER: "symfony" | |
MYSQL_PASSWORD: "symfony" | |
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
myadmin: | |
image: phpmyadmin/phpmyadmin | |
ports: | |
- "8080:80" | |
depends_on: | |
- db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment