Skip to content

Commit 110aa91

Browse files
author
Roel Arents
committed
add APACHE_PHP_UPSTREAM_TIMEOUT
1 parent ae048e6 commit 110aa91

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

apache2/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
44

55
ARG PHP_UPSTREAM_CONTAINER=php-fpm
66
ARG PHP_UPSTREAM_PORT=9000
7+
ARG PHP_UPSTREAM_TIMEOUT=60
78

89
ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
910

1011
ENV WEB_DOCUMENT_ROOT=/var/www/
1112

13+
ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
14+
1215
EXPOSE 80 443
1316

1417
WORKDIR /var/www/

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ services:
156156
args:
157157
- PHP_UPSTREAM_CONTAINER=${APACHE_PHP_UPSTREAM_CONTAINER}
158158
- PHP_UPSTREAM_PORT=${APACHE_PHP_UPSTREAM_PORT}
159+
- PHP_UPSTREAM_TIMEOUT=${APACHE_PHP_UPSTREAM_TIMEOUT}
159160
volumes_from:
160161
- applications
161162
volumes:

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ APACHE_HOST_LOG_PATH=./logs/apache2
9797
APACHE_SITES_PATH=./apache2/sites
9898
APACHE_PHP_UPSTREAM_CONTAINER=php-fpm
9999
APACHE_PHP_UPSTREAM_PORT=9000
100+
APACHE_PHP_UPSTREAM_TIMEOUT=60
100101

101102
### MYSQL ##############################################################################################################
102103

0 commit comments

Comments
 (0)