Skip to content

Instantly share code, notes, and snippets.

@imasimali
Created February 16, 2021 19:50
Show Gist options
  • Save imasimali/aea60018aef02857a0df0ceb997f5b8e to your computer and use it in GitHub Desktop.
Save imasimali/aea60018aef02857a0df0ceb997f5b8e to your computer and use it in GitHub Desktop.
PHPMYSQL (Docker Compose)
version: '3.1'
services:
db:
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: mysqlrootpassword
MYSQL_DATABASE: test_db
ports:
- "3308:3306"
phpmyadmin:
image: phpmyadmin:latest
restart: always
environment:
PMA_HOST: db
ports:
- "8080:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment