Skip to content

Instantly share code, notes, and snippets.

@falmar
Last active July 15, 2017 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falmar/1e10d3df7f2f62eed05bfa232acf4374 to your computer and use it in GitHub Desktop.
Save falmar/1e10d3df7f2f62eed05bfa232acf4374 to your computer and use it in GitHub Desktop.
# 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