From 226273418d7e7ce01c4a79dca147a7694df66dee Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sun, 22 Feb 2026 00:30:13 +0300 Subject: [PATCH] Make adding pdo_pgsql more prominent --- src/guide/start/databases.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/guide/start/databases.md b/src/guide/start/databases.md index 7e3bee59..9ae215ba 100644 --- a/src/guide/start/databases.md +++ b/src/guide/start/databases.md @@ -71,8 +71,31 @@ services: Note that we add `depends_on` so application waits for database to be up. Also, we'll need a `pdo_pgsql` extension to communicate with PostgreSQL. You can enable it locally in `php.ini`. -If you use Docker, check `docker/Dockerfile` and add `pdo_pgsql` in `install-php-extensions` list. Then rebuild -PHP image with `make build && make down && make up`. + +If you use Docker, check `docker/Dockerfile` and add `pdo_pgsql` in `install-php-extensions` list: + +```dockerfile +RUN install-php-extensions \ + opcache \ + mbstring \ + intl \ + dom \ + ctype \ + curl \ + phar \ + openssl \ + xml \ + xmlwriter \ + simplexml \ + pdo \ + pdo_pgsql +``` + +Then rebuild PHP image with + +```sh +make build && make down && make up +``` ## Configuring connection