Skip to content

Instantly share code, notes, and snippets.

@arielgk
Created October 13, 2019 22:52
Show Gist options
  • Select an option

  • Save arielgk/5544c2e81e5b8f774edfb4ca434aafec to your computer and use it in GitHub Desktop.

Select an option

Save arielgk/5544c2e81e5b8f774edfb4ca434aafec to your computer and use it in GitHub Desktop.
docker compose mysql phpmyadmin
version: '2'
services:
db:
image: datajoint/mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_HOST='127.0.0.1'
- MYSQL_ROOT_PASSWORD=simple
volumes:
- ./data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:mysql
container_name: phpmyadmin
environment:
- PMA_ARBITRARY=1
restart: always
ports:
- 8080:80
volumes:
- /sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment