Created
July 24, 2017 04:18
-
-
Save muzzwood/f0c0c915855cc576c1eaa1f7f4b394cb to your computer and use it in GitHub Desktop.
Docker-compose file for running a LAMP stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| web: | |
| image: php:7.1.7-apache | |
| ports: | |
| - 80:80 | |
| volumes: | |
| - .:/var/www/html | |
| db: | |
| image: mysql | |
| environment: | |
| ['MYSQL_ROOT_PASSWORD=secret'] | |
| ports: | |
| - 3306:3306 | |
| command: mysqld --sql-mode=NO_ENGINE_SUBSTITUTION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment