Skip to content

Instantly share code, notes, and snippets.

@pawiromitchel
Created February 20, 2022 23:47
Show Gist options
  • Save pawiromitchel/986fdb203fcca1032eb0f5e8ba9e2b82 to your computer and use it in GitHub Desktop.
Save pawiromitchel/986fdb203fcca1032eb0f5e8ba9e2b82 to your computer and use it in GitHub Desktop.
[mysql + phpmyadmin] #mysql #docker
version: '3.1'
services:
db:
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test_db
ports:
- "3308:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
restart: always
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: root
ports:
- "8080:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment