Docker for Symfony

ONLY for DEV, not for production

Installing :

  • PHP 8.1.13 CLI
  • Composer (last version)
  • Symfony (last version)
  • Some other php extentions
  • nodejs, npm, yarn
  • MariaDB 10.10.2
  • PHPMyAdmin 5.0.4

Run Locally

Clone the project and go to the directory created

Run the docker compose

docker compose -p symfony up -d

Log into the PHP container

docker exec -it symfony bash

Check the Symfony installation

symfony check:requirements
symfony server:ca:install

MariaDB is available at port 3307

PHPMyAdmin is available at http://127.0.0.1:8080

Your application will be available at http://127.0.0.1:8000

Thanks to