File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2525RUN 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 \
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ PHP_INI_DIR=/usr/local/etc/php/conf.d
66APACHE_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
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Exemple:
1717COMPOSE_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
2021PHP_VERSION=8.4
2122
2223# [Optional] php5 support, recommanded: 5.6
You can’t perform that action at this time.
0 commit comments