Warning : I learn this tech actually, this is my first conf docker for dev environment.
git hub : https://github.com/sofiane-wattiez/env-docker-symfony6-php8.git
docker hub : https://hub.docker.com/repository/docker/swattiez/symfony6-php8
branch git : You have conf for php8.1.0 on 2nd branch
docker-compose build
docker-compose up -d
Connect into the PHP container
docker exec -it 669f3ffc9f54 bash
symfony new new-project --full
cd new-project
symfony serve -d
adduser username
chown username:username -R .
Your application is available at : http://127.0.0.1:9000
If you need a database, modify the .env file like this example:
DATABASE_URL="postgresql://symfony:ChangeMe@database:5432/app?serverVersion=13&charset=utf8
This docker-compose provides you :
Out of the container, this docker-compose is created for a Linux OS , use wsl2 if you used windows
Content type
Image
Digest
Size
248.4 MB
Last updated
over 4 years ago
docker pull swattiez/symfony6-php8:669f3ffc9f54