Skip to content

Instantly share code, notes, and snippets.

@dnaprawa
Created July 2, 2020 05:47
Show Gist options
  • Save dnaprawa/4435409cc0f2709ca142e221eb5bde5c to your computer and use it in GitHub Desktop.
Save dnaprawa/4435409cc0f2709ca142e221eb5bde5c to your computer and use it in GitHub Desktop.
Sample YAML file to run MySQL & phpMyAdmin using Docker (docker-compose)
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