Created
October 8, 2016 11:13
-
-
Save igez/168ada1c7fd483707361ceff2ab7d167 to your computer and use it in GitHub Desktop.
Setup local project Apache PHP Mysql with persistent data
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: | |
db: | |
image: igez/mysql | |
volumes: | |
- "./.data:/var/lib/mysql" | |
restart: always | |
environment: | |
MYSQL_DATABASE: "test" | |
web: | |
volumes: | |
- "./:/var/www" | |
depends_on: | |
- db | |
image: igez/php5-fpm | |
links: | |
- db | |
ports: | |
- "80:80" | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment