Added HHVM container and used environment variable for switching

This commit is contained in:
orette
2016-07-24 02:49:57 +00:00
parent 4d2452101a
commit ef8579987f
5 changed files with 62 additions and 4 deletions

View File

@ -5,7 +5,10 @@ services:
### Nginx Server Container ##################################
nginx:
build: ./nginx
build:
context: ./nginx
args:
- PHP_UPSTREAM=${PHP_PROCESS_MANAGER}
volumes_from:
- volumes_source
volumes:
@ -14,7 +17,7 @@ services:
- "80:80"
- "443:443"
links:
- php-fpm
- ${PHP_PROCESS_MANAGER}
### PHP-FPM Container #######################################
@ -29,6 +32,17 @@ services:
links:
- workspace
### HHVM Container ##########################################
hhvm:
build: ./hhvm
volumes_from:
- volumes_source
expose:
- "9000"
links:
- workspace
### MySQL Container #########################################
mysql: