-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'root/master'
# Conflicts: # .gitignore # docker-compose.yml
- Loading branch information
Showing
6 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
######################################################################## | ||
# MySQL | ||
######################################################################## | ||
MYSQL_PORT=3306 | ||
MYSQL_ROOT_PASSWORD=root | ||
MYSQL_DATABASE=symfony | ||
MYSQL_USER=symfony | ||
MYSQL_PASSWORD=symfony | ||
|
||
######################################################################## | ||
# PHP | ||
######################################################################## | ||
PHP_PORT=9000 | ||
PHP_XDEBUG_MODE=off | ||
PHP_XDEBUG_CLIENT_PORT=5902 | ||
PHP_XDEBUG_CLIENT_HOST=host.docker.internal | ||
|
||
######################################################################## | ||
# NGINX | ||
######################################################################## | ||
NGINX_PORT=80 | ||
|
||
######################################################################## | ||
# Elasticsearch | ||
######################################################################## | ||
ELASTICSEARCH_PORT=9200 | ||
|
||
######################################################################## | ||
# Kibana | ||
######################################################################## | ||
KIBANA_PORT=81 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# volumes | ||
/logs | ||
/symfony | ||
/db | ||
|
||
/.env.* | ||
|
||
# IDE setting | ||
## PhpStorm | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ LABEL maintainer="Vincent Composieux <[email protected]>" | |
|
||
RUN apk add --no-cache \ | ||
coreutils \ | ||
gettext \ | ||
php8-fpm \ | ||
php8-ctype \ | ||
php8-curl \ | ||
|
@@ -33,11 +34,19 @@ RUN apk add --no-cache \ | |
make \ | ||
curl | ||
|
||
# Allow to enable php8-xdebug | ||
ARG ENABLE_PHP_XDEBUG | ||
RUN if [[ "$ENABLE_PHP_XDEBUG" == "1" ]]; then \ | ||
# Enable php8-xdebug if $PHP_XDEBUG_MODE is not empty | ||
ARG PHP_XDEBUG_MODE=off | ||
ARG PHP_XDEBUG_CLIENT_PORT=5902 | ||
ARG PHP_XDEBUG_CLIENT_HOST=host.docker.internal | ||
COPY xdebug.ini /etc/php8/conf.d/xdebug.ini.template | ||
RUN if [[ "$PHP_XDEBUG_MODE" != "" ]]; then \ | ||
apk add --no-cache php8-pecl-xdebug; \ | ||
export PHP_XDEBUG_MODE=$PHP_XDEBUG_MODE; \ | ||
export PHP_XDEBUG_CLIENT_PORT=$PHP_XDEBUG_CLIENT_PORT; \ | ||
export PHP_XDEBUG_CLIENT_HOST=$PHP_XDEBUG_CLIENT_HOST; \ | ||
envsubst < /etc/php8/conf.d/xdebug.ini.template > /etc/php8/conf.d/xdebug.ini; \ | ||
fi | ||
RUN rm -f /etc/php8/conf.d/xdebug.ini.template | ||
|
||
RUN curl -sS https://getcomposer.org/installer | tee composer-setup.php \ | ||
&& php8 composer-setup.php && rm composer-setup.php* \ | ||
|
@@ -56,7 +65,6 @@ RUN apk add --update nodejs npm \ | |
|
||
COPY symfony.ini /etc/php8/conf.d/ | ||
COPY symfony.ini /etc/php8/cli/conf.d/ | ||
COPY xdebug.ini /etc/php8/conf.d/ | ||
|
||
COPY symfony.pool.conf /etc/php8/php-fpm.d/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
zend_extension=xdebug.so | ||
|
||
[Xdebug] | ||
xdebug.mode=debug | ||
xdebug.client_port=5902 | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=${PHP_XDEBUG_MODE} | ||
xdebug.client_port=${PHP_XDEBUG_CLIENT_PORT} | ||
xdebug.client_host=${PHP_XDEBUG_CLIENT_HOST} |