Skip to content

A very simple Docker-compose to discover Symfony 7 with PHP 8.0.13 in 5 minutes

Notifications You must be signed in to change notification settings

quentinRogeret34/symfony7-php8-in-docker-compose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Symfony 7 + PHP 8.0.13 with Docker

ONLY for DEV, not for production

A very simple Docker-compose to discover Symfony 7 with PHP 8.3.0 in 5 minutes

Run Locally

Clone the project

  [email protected]:quentinRogeret34/symfony7-php8-in-docker-compose.git

Run the docker-compose

  docker-compose build
  docker-compose up -d

Log into the PHP container

  docker exec -it php8-sf7 bash

Create your Symfony application and launch the internal server

  symfony new new-project --full
  cd new-project
  symfony serve -d

Create an account (identical to your local session)

  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"

Ready to use with

This docker-compose provides you :

  • PHP-8.3.13-cli (Debian)
    • Composer
    • Symfony CLI
    • and some other php extentions
    • nodejs, npm, yarn
  • postgres:13-alpine
  • mailcatcher

Requirements

Out of the box, this docker-compose is designed for a Linux operating system, provide adaptations for a Mac or Windows environment.

  • Linux (Ubuntu 20.04 or other)
  • Docker
  • Docker-compose

Author

About

A very simple Docker-compose to discover Symfony 7 with PHP 8.0.13 in 5 minutes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%