make the PHP_UPSTREAM config for NGINX and Apache identical

This commit is contained in:
Mahmoud Zalt
2017-08-04 00:50:20 +03:00
parent 004e4354aa
commit 5c0b8316b1
4 changed files with 19 additions and 11 deletions

View File

@ -107,13 +107,14 @@ services:
networks:
- backend
### Nginx Server Container ##################################
### NGINX Server Container ##################################
nginx:
build:
context: ./nginx
args:
- PHP_UPSTREAM=php-fpm
- PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
volumes_from:
- applications
volumes:
@ -146,7 +147,8 @@ services:
build:
context: ./apache2
args:
- PHP_SOCKET=${PHP_SOCKET}
- PHP_UPSTREAM_CONTAINER=${APACHE_PHP_UPSTREAM_CONTAINER}
- PHP_UPSTREAM_PORT=${APACHE_PHP_UPSTREAM_PORT}
volumes_from:
- applications
volumes: