Skip to content

Instantly share code, notes, and snippets.

@jverdeyen
Last active August 29, 2015 14:24
Show Gist options
  • Save jverdeyen/850bc70015eff9f7ef35 to your computer and use it in GitHub Desktop.
Save jverdeyen/850bc70015eff9f7ef35 to your computer and use it in GitHub Desktop.
docker-compose.yml Symfony2
app:
image: yappabe/data
volumes:
- .:/var/www/app
- /vendor
tty: true
nginx:
image: yappabe/nginx
ports:
- 80:80
links:
- php
volumes_from:
- app
environment:
DOCUMENT_ROOT: /var/www/app/web
INDEX_FILE: app_dev.php
PHP_FPM_SOCKET: php:9000
mysql:
image: tutum/mysql
ports:
- 3306:3306
environment:
MYSQL_PASS: dev
MYSQL_USER: dev
ON_CREATE_DB: dev
php:
image: yappabe/php
expose:
- 9000:9000
volumes_from:
- app
links:
- mysql
- mailcatcher
mailcatcher:
image: yappabe/mailcatcher
ports:
- 1025:1025
- 1080:1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment