Replies: 11 comments
-
What do you mean exactly? Having a postgres database and the necessary PHP extension available? |
Beta Was this translation helpful? Give feedback.
-
I mean can you add postgress as a new container like mysql |
Beta Was this translation helpful? Give feedback.
-
You could add a container like postgres to your development environment quite easily. It can be achieved by creating a file # .warden/warden-env.yml
version: '3.5'
services:
postgres:
hostname: "${WARDEN_ENV_NAME}-postgres"
image: postgres:10
environment:
POSTGRES_PASSWORD: example
volumes:
- pgdata:/var/lib/postgresql/data
php-fpm:
depends_on:
postgres:
condition: service_started
volumes:
pgdata: {} After creating the file, run warden env exec php-fpm sudo dnf install -y postgresql php-pgsql
warden env exec php-debug sudo dnf install -y postgresql php-pgsql
# for blackfire, if you use that
warden env exec php-blackfire sudo dnf install -y postgresql php-pgsql Assuming you know how to connect to postgres, here are the credentials:
|
Beta Was this translation helpful? Give feedback.
-
hi @tdgroot Thanks |
Beta Was this translation helpful? Give feedback.
-
@emreakay Good catch! I corrected my comment. |
Beta Was this translation helpful? Give feedback.
-
I have used this file,
|
Beta Was this translation helpful? Give feedback.
-
I have tried this config, but it does not work for me
It's asif the new config is ignored Do you know what I am doing wrong here? I am running this setup on |
Beta Was this translation helpful? Give feedback.
-
@WinstonN try renaming it from |
Beta Was this translation helpful? Give feedback.
-
while centos is ended, you must add centos stream repos, warden env exec php-fpm sudo dnf -y --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
warden env exec php-fpm sudo dnf distro-sync -y
warden env exec php-debug sudo dnf -y --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
warden env exec php-debug sudo dnf distro-sync -y
warden env exec php-fpm sudo dnf install -y postgresql php-pgsql
warden env exec php-debug sudo dnf install -y postgresql php-pgsql
warden env restart
|
Beta Was this translation helpful? Give feedback.
-
Re-opening as a feature Request |
Beta Was this translation helpful? Give feedback.
-
we are looking forward to seeing this feature @navarr :) |
Beta Was this translation helpful? Give feedback.
-
Can you bring postgress support for laravel projects?
Beta Was this translation helpful? Give feedback.
All reactions