Skip to content

Instantly share code, notes, and snippets.

@wiesson
Created May 9, 2016 06:19
Show Gist options
  • Save wiesson/8e77c546888ff3bcae37d46b08a9fa9d to your computer and use it in GitHub Desktop.
Save wiesson/8e77c546888ff3bcae37d46b08a9fa9d to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
build: .
ports:
- "80:8080"
php:
image: php:7-fpm
volumes:
- /Users/arnewiese/Projects/efr/app:/var/www/app
nginx:
image: nginx:latest
volumes:
- ./default.conf:/etc/nginx/conf.d/laravel.template
ports:
- "8080:80"
volumes_from:
- php
# command: /bin/bash -c "envsubst < /etc/nginx/conf.d/laravel.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
# db:
# image: mariadb:latest
# redis:
# image: redis:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment