Skip to content

Instantly share code, notes, and snippets.

@jcavat
Last active June 11, 2019 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jcavat/64557bc4989a21a43cd8a926017f3349 to your computer and use it in GitHub Desktop.
Save jcavat/64557bc4989a21a43cd8a926017f3349 to your computer and use it in GitHub Desktop.
docker-compose config file with mysql and phpmyadmin
version: "2"
services:
db:
image: mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: myDb
MYSQL_USER: user
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: test
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:db
ports:
- 8000:80
environment:
MYSQL_USER: user
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: test
volumes:
- /sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment