docker-php-nginx-postgres

Stars
5

Symfony 6 + PHP 8.1 with Docker

Environment for develop an app

A very simple Docker-compose to discover Symfony 6 with PHP 8.1 in 5 minutes

How to run ?

Clone the project

git clone https://github.com/disco07/docker-php-nginx-postgres.git

Run the docker-compose

docker-compose build
docker-compose up -d

Enter on bash PHP

docker exec -it php8-container bash

Create your new Symfony application

symfony new project-name --full

Your application is available at http://127.0.0.1:8080*

Modify the .env file like this:

DATABASE_URL="postgresql://symfony:ChangeMe@postgres:5432/app?serverVersion=13&charset=utf8"

Requirements