Skip to content

How to use PostgreSQL instead of mysql ? #60

@nicolaspiquerez

Description

@nicolaspiquerez

Hello,
Have you managed to use postgreSQL ?

I'm trying to replace mysql with postgresql, but I can't get symfony / laravel to connect.

I have the following error when trying to connect to a remote (aws) postgreSQL database :
ErrorException in Connection.php line 770:
could not find driver

In docker-compose i linked postgre
links:
#- mail
#- mysql
- pgsql

Removed comments from PostgreSQL config
#######################################

PostgreSQL server

#######################################
pgsql:
build:
context: docker/postgres/

dockerfile: Postgres-9.4.Dockerfile

  dockerfile: Postgres-9.5.Dockerfile

volumes_from:

- storage

ports:
  - 15432:5432
env_file:
  - etc/environment.yml
  - etc/environment.development.yml

It seems the php7 extension for postgreSQL is missing
I tried to install it with "RUN /usr/local/bin/apt-install php7.0-pgsql" but can't find any php packages installed :/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions