Created
July 2, 2020 05:47
-
-
Save dnaprawa/4435409cc0f2709ca142e221eb5bde5c to your computer and use it in GitHub Desktop.
Sample YAML file to run MySQL & phpMyAdmin using Docker (docker-compose)
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.7' | |
services: | |
phpmyadmin: | |
container_name: phpmyadmin | |
image: phpmyadmin/phpmyadmin:latest | |
restart: always | |
ports: | |
- 8081:80 | |
db: | |
container_name: mysql | |
image: mysql:5.7 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: password123 | |
ports: | |
- "3307:3306" | |
volumes: | |
- db-vol:/var/lib/mysql | |
volumes: | |
db-vol: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment