Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docker to v3, PHP 8.0 and Xdebug 3.0.3 #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2'
version: '3'
services:

phpminds-api-web:
Expand All @@ -15,14 +15,14 @@ services:
volumes:
- ${WEB_APP_PATH}:/var/www/html:cached


phpminds-api-db:
platform: linux/x86_64
image: mysql:5.7.22
restart: always
ports:
- 5106:3306
env_file:
- .env
volumes:
- ${WEB_APP_PATH}:/var/www/html:cached
- ./.data/db:/var/lib/mysql

8 changes: 4 additions & 4 deletions docker/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM pavlakis/xdebug:2.9.8 AS xdebug
FROM pavlakis/php-apache-common:7.4.10
FROM pavlakis/xdebug:3.0.3 AS xdebug
FROM pavlakis/php-apache-common:8.0.3

COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
ADD apache.conf /etc/apache2/sites-available/000-default.conf
COPY apache.conf /etc/apache2/sites-available/000-default.conf

COPY --from=xdebug /usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
COPY --from=xdebug /usr/local/lib/php/extensions/no-debug-non-zts-20200930/xdebug.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/xdebug.so
9 changes: 2 additions & 7 deletions docker/web/xdebug.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
; Enable xdebug extension module
zend_extension=xdebug.so

;xdebug.remote_log="/var/log/xdebug/xdebug.log"
;xdebug.profiler_enable = 0
xdebug.remote_enable=1
xdebug.remote_port=9099
xdebug.remote_autostart=1
xdebug.remote_connect_back=0
xdebug.idekey=editor-xdebug
xdebug.mode=coverage,develop,debug
xdebug.start_with_request=yes