Skip to content

Instantly share code, notes, and snippets.

@takeit
Last active April 11, 2018 12:53
Show Gist options
  • Save takeit/80a4c726f96b7f8d6ade3688b8352c39 to your computer and use it in GitHub Desktop.
Save takeit/80a4c726f96b7f8d6ade3688b8352c39 to your computer and use it in GitHub Desktop.
version: '2'
services:
postgres:
image: postgres
ports:
- '5433:5432'
php:
build: php-fpm
ports:
- '9002:9000'
volumes:
- ../:/var/www/symfony:cached
- ./logs/symfony:/var/www/symfony/var/logs:cached
links:
- postgres
nginx:
build: nginx
ports:
- '8080:80'
links:
- php
volumes_from:
- php
volumes:
- ./logs/nginx/:/var/log/nginx:cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment