Skip to content

Instantly share code, notes, and snippets.

@davidcostadev
Created May 27, 2017 13:02
Show Gist options
  • Save davidcostadev/4e0d56dbc71514d1afdd8dbd60ee011e to your computer and use it in GitHub Desktop.
Save davidcostadev/4e0d56dbc71514d1afdd8dbd60ee011e to your computer and use it in GitHub Desktop.
version: '2'
services:
mysqlserver:
image: mysql
ports:
- "3306:3306"
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123
webserver:
image: davidcostadev/php56-apache2
ports:
- "80:80"
volumes:
- .:/var/www
links:
- mysqlserver
myadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8000:80"
links:
- mysqlserver
environment:
PMA_HOST: "172.18.0.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment