Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/disco07/docker-php-nginx-postgres
- Owner: disco07
- Created: 2022-03-20T11:47:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-20T14:04:42.000Z (over 2 years ago)
- Last Synced: 2023-03-20T22:15:23.763Z (over 1 year ago)
- Topics: docker, docker-compose, nextjs, nginx-docker, php8, reactjs
- Language: Dockerfile
- Homepage:
- Size: 20.5 KB
- Stars: 5
- 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 appA 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