Skip to content

Commit b7588cc

Browse files
committed
.env: support APP_PORT
1 parent 8f645ea commit b7588cc

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

.docker/apachephp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN if [ "$(echo $PHP_VERSION | cut -d. -f1)" = "5" ]; then \
2323

2424
# Installation des outils, configuration du fuseau horaire ET des locales
2525
RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \
26-
nano curl locales apt-utils supervisor tzdata \
26+
nano curl locales apt-utils tzdata \
2727
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && echo "${LANG} UTF-8" >> /etc/locale.gen && locale-gen \
2828
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
2929
&& echo "${TZ}" > /etc/timezone \

.docker/apachephp/app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
args:
66
- PHP_VERSION=${PHP_VERSION:-8.4}
77
ports:
8-
- "8000:80"
8+
- "${APP_PORT:-8000}:80"
99
volumes:
1010
- ../../demo:/var/www/project/demo
1111
# - ./97-memcached.ini:${PHP_INI_DIR}/97-memcached.ini

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ PHP_INI_DIR=/usr/local/etc/php/conf.d
66
APACHE_CONF_DIR=/etc/apache2/sites-available
77

88
# Optional environment variables
9+
# APP_PORT=8000
910
# PHP_VERSION=5.6
1011
# XDEBUG_CONFIG_FILE=98-xdebug-php5.ini

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Exemple:
1717
COMPOSE_FILE=.docker/apachephp/app.yml,.docker/database/mysql.yml,.docker/database/phpmyadmin.yml
1818
1919
# [Optional] You can set php version, recommanded: 7.4, 8.4+
20+
APP_PORT=APP_PORT
2021
PHP_VERSION=8.4
2122
2223
# [Optional] php5 support, recommanded: 5.6

0 commit comments

Comments
 (0)