Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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


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

docker docker-compose nextjs nginx-docker php8 reactjs

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# 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
```bash
git clone https://github.com/disco07/docker-php-nginx-postgres.git
```

Run the docker-compose
```bash
docker-compose build
docker-compose up -d
```

Enter on bash PHP
```bash
docker exec -it php8-container bash
```

Create your new Symfony application
```bash
symfony new project-name --full
```

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

Modify the .env file like this:
```bash
DATABASE_URL="postgresql://symfony:ChangeMe@postgres:5432/app?serverVersion=13&charset=utf8"
```

## Requirements


  • Linux-Windows-MacOs

  • Docker

  • docker-compose