DEV Community

Discussion on: Symfony 5 development with Docker

Collapse
 
b3nb1 profile image
b3nb1 • Edited

For those which rather want to use postgresql instead of mariadb.

# docker/database/Dockerfile
FROM postgres:latest

ENV POSTGRES_USER <your user>
ENV POSTGRES_PASSWORD <your password>
EXPOSE 3306

And I had to add

RUN apk add --no-cache bash

in php-fpm dockerfile (due to this warning: env: can't execute 'bash': No such file or directory).