Commit Graph

52 Commits

Author SHA1 Message Date
Yassine Guedidi
4d28e660e9 Switch XDebug to trigger mode
In always-on debug mode (start_with_request=yes, the default), every PHP
invocation attempts to connect to the IDE debugger and logs an error when
nothing is listening. This pollutes terminal output during normal development.

Switch to trigger mode so XDebug only initiates a debug session when
explicitly requested:
- CLI: prefix commands with XDEBUG_TRIGGER=1
- Web: set the XDEBUG_TRIGGER cookie or query parameter (use the Xdebug
  Helper browser extension for convenience)

Also remove XDEBUG_TRIGGER=yes from the env file. That line set the trigger
env var unconditionally, which would have caused XDebug to always fire even
in trigger mode.
2026-03-20 21:54:10 +01:00
Yassine Guedidi
e15e582756 Fix XDebug host connectivity in Docker
XDebug defaults client_host to 'localhost', which inside a Docker container
resolves to the container itself rather than the host machine where the IDE
debugger is listening. This causes every PHP invocation to fail with
'Could not connect to debugging client. Tried: localhost:9003'.

Add extra_hosts to the php service so that host.docker.internal resolves to
the Docker host IP via host-gateway. This works on all platforms (Docker
Desktop on macOS/Windows, native Linux Docker, WSL2).

Set XDEBUG_CONFIG=client_host=host.docker.internal in the xdebug env file so
XDebug connects to the host machine instead of the container.

Also remove the now-stale commented port binding (9000:9000 from XDebug 2).
XDebug 3 makes outbound connections from the container to the IDE — no port
publishing is needed or appropriate.
2026-03-20 21:54:10 +01:00
Jérémy Benoist
da8254ab18 Merge pull request #8557 from rootshellz/fix_docker_wallabag_user_agent
include wallabag_user_agent in the docker parameters.yml
2025-11-20 09:57:04 +01:00
rootshellz
5dcfe76880 include wallabag_user_agent in the docker parameters.yml 2025-11-20 01:27:24 -07:00
rootshellz
b1be5cb9e1 pin the docker base image to bookworm - Fixes #8455 2025-11-19 23:42:13 -07:00
Martin Chaine
c01408981a fix(docker): install envsubst from source to support more targets 2025-06-01 22:27:34 +02:00
Yassine Guedidi
d082def664 Upgrade PHP Docker base image to 8.2 2025-03-13 01:42:02 +01:00
Yassine Guedidi
d988919448 Fix default DOMAIN_NAME to avoid Cross-Origin issues 2025-03-07 23:58:54 +01:00
Yassine Guedidi
9a95f55b9c Use redis scheme for Redis 2025-02-22 13:34:09 +01:00
Yassine Guedidi
f0cc7fdc27 Remove unused RSS limit parameter 2025-02-20 10:29:54 +01:00
Yassine Guedidi
460b509a1d Make all parameters configurable with environment variables 2025-02-19 20:42:37 +01:00
Yassine Guedidi
1e4f199d5e Update Node setup commands in PHP Dockerfile 2025-02-17 11:40:32 +01:00
Yassine Guedidi
2c061289dc Fix database_path default value 2025-01-19 22:29:07 +01:00
Yassine Guedidi
fb0aa4357d Make Blackfire completely optional 2024-12-22 00:22:47 +01:00
Yassine Guedidi
742742f67d Merge pull request #7288 from yguedidi/setup-blackfire
Setup Blackfire
2024-02-26 14:05:30 +01:00
Yassine Guedidi
b9208dae5c Fix default RabbitMQ host on dev setup 2024-02-24 22:41:35 +01:00
Yassine Guedidi
2bf2409567 Add RabbitMQ env vars 2024-02-24 22:34:04 +01:00
Yassine Guedidi
e7a348cd0f Setup Blackfire 2024-02-24 19:28:36 +01:00
Yassine Guedidi
7962972011 Remove SESSION_HANDLER 2024-01-20 09:55:48 +01:00
Yassine Guedidi
03f88ff6bf Remove DATABASE_DRIVER_CLASS 2024-01-20 09:55:05 +01:00
Jeremy Benoist
019e978846 Use Node 20
Backported from the 2.6 branch.
Also, update composer & node deps.
2023-12-27 23:00:49 +01:00
Nicolas Lœuillet
27e54e0634 Merge pull request #6791 from wallabag/change-default-fosuser-registration
Change public registration to false by default
2023-08-24 07:55:13 +02:00
Yassine Guedidi
cc33fcb4ba Replace kernel.root_dir by kernel.project_dir 2023-08-09 22:46:18 +01:00
Nicolas Lœuillet
5e4eae42a0 Change public registration to false by default 2023-08-03 16:15:37 +02:00
Kevin Decherf
13a3a5596c Update dev docker base image to php:8.1-fpm
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2023-07-22 19:16:32 +02:00
Nicolas Lœuillet
c75d3e6961 Remove twofactor_auth parameter
Fix #6649
2023-07-15 16:18:01 +02:00
Jérémy Benoist
719f9004d1 Merge branch 'master' into master 2023-01-02 10:24:44 +01:00
François
9426be3dbb Docker: database_table_prefix may be configured from environment 2022-12-28 17:38:39 +01:00
Jeremy Benoist
b2b1e1c437 Fix database_path in Docker env
Also, add `mailer_dsn` and limit xdebug to allow installation of PHP < 8
2022-12-22 12:30:34 +01:00
Jeremy Benoist
40595af2cf Merge remote-tracking branch 'origin/master' into 2.6.0 2022-06-09 11:33:05 +02:00
Kevin Decherf
a505e9a1b5 docker: bump nodejs to 16
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2022-06-08 23:13:37 +02:00
Yassine Guedidi
819487721a Back to latest composer version 2022-05-21 23:46:49 +02:00
Yassine Guedidi
f1ed14b8f8 Downgrade PHP to 7.4 on Docker 2022-05-13 00:38:53 +02:00
Yassine Guedidi
d988065148 Fix tests on Docker by adding missing WebP support 2022-05-13 00:38:53 +02:00
Yassine Guedidi
2ae3ef12af Update to the latest Composer 2.2 version 2022-05-13 00:38:53 +02:00
Yassine Guedidi
1efe54859f Fix SQLite database location 2022-05-03 06:47:58 +02:00
Nicolas Lœuillet
31337b0a0a Fixed composer version in docker dev configuration 2022-04-04 14:02:13 +02:00
Kevin Decherf
f51008aef0 Update docker-compose and Dockerfile for dev env
This change should ease the spawn of a development environment.
It can be used as a vscode devcontainer.

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2022-04-04 10:10:55 +02:00
Jérémy Benoist
8d8d6818fb Merge pull request #4163 from aaa2000/docker-increase-php-memory-limit
Increase php memory limit PHP Docker
2019-11-12 13:58:13 +01:00
adev
64885da458 Increase php memory limit PHP Docker 2019-10-27 19:25:47 +01:00
adev
2068b4458d Add package and PHP extension to PHP docker 2019-10-27 19:04:04 +01:00
Jeremy Benoist
0deec4082f Add missing tidy extension on Docker
It's required in the 2.4 version
2019-07-06 22:03:40 +02:00
Jeremy Benoist
2a61e13fae Improve CONTRIBUTING guide
Also:

- update the docker-compose to use Alpine image (lighter)
- update the PHP Dockerfile to use Imagick instead of GD (for GIF support when downloading images) and add support for SQLite
2019-06-19 14:54:38 +02:00
Jérémy Benoist
c1a1c46e9d Force PHP version in Dockerfile 2019-05-23 08:51:54 +02:00
David MOHAMED
f5c862640b libpng12-dev was rename as libpng-dev 2018-10-06 14:15:59 +02:00
David MOHAMED
9e83c3bdf0 remove mcrypt since openssl is included in php 7.2
mcrypt extension doesn't exist anymore
2018-10-06 14:15:01 +02:00
Pascal MARTIN
ecdefb11f7 Add PHP 'gd' extension to docker
The gd extension is required to export entries as EPUB.
2016-09-30 12:29:37 +02:00
djay
b80841f23c Add comment about timezone definition 2016-03-09 09:04:31 +01:00
djay
612f5f1ec7 Add the timezone as an argument in the docker-compose.
For that, need to use v2 of docker-compose (with version >= 1.6.0)
2016-03-09 09:04:19 +01:00
djay
125460345f Add the timezone for PHP docker container 2016-03-09 09:02:06 +01:00