Skip to content

Instantly share code, notes, and snippets.

@tomoyk
Last active April 16, 2021 09:24
Show Gist options
  • Save tomoyk/e984589d99711347fd47fd57af6e90db to your computer and use it in GitHub Desktop.
Save tomoyk/e984589d99711347fd47fd57af6e90db to your computer and use it in GitHub Desktop.
phpmyadminとmysqlの環境を作るやつ
version: '3'
services:
db:
container_name: composed-mysql
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: foobar123
MYSQL_DATABASE: db_study
pma:
container_name: composed-pma
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
restart: always
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: foobar123
volumes:
db_data:
@tomoyk
Copy link
Author

tomoyk commented Sep 26, 2018

ブラウザから http://localhost:8080/ へアクセス!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment