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: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/disco07/docker-php-nginx-postgres
- Owner: disco07
- Created: 2022-03-20T11:47:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-20T14:04:42.000Z (about 4 years ago)
- Last Synced: 2025-04-09T21:52:59.282Z (about 1 year ago)
- Topics: docker, docker-compose, nextjs, nginx-docker, php8, reactjs
- Language: Dockerfile
- Homepage:
- Size: 20.5 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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