Last active
July 15, 2017 01:46
-
-
Save falmar/1e10d3df7f2f62eed05bfa232acf4374 to your computer and use it in GitHub Desktop.
This file contains 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
# MYSQL_PASSWORD=... docker-compose up -d | |
version: '2' | |
services: | |
ds: | |
image: alpine:3.4 | |
command: sh | |
volumes: | |
- ./:/usr/share/nginx/html | |
mysql: | |
image: mysql:5.6 | |
ports: ["3316:3306"] | |
environment: | |
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD} | |
nginx: | |
image: falmar/nginx:public | |
links: ["php:php"] | |
ports: ["8080:80"] | |
depends_on: | |
- php | |
volumes_from: | |
- ds | |
php: | |
image: falmar/php:5.6-dev | |
depends_on: | |
- mysql | |
volumes_from: | |
- ds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment