Skip to content

Eddaoust/Docker-Symfony

Repository files navigation

🐳 Symfony Docker Stack

A complete stack for developing Symfony application.

  • Multiple PHP versions
  • Symfony CLI
  • Supervisor to run async tasks
  • MariaDB
  • Node(18) + NPM(9) for building assets
  • Composer v2
  • Maildev

Installation

Edit the .env.docker file

Build & run the stack :

$ docker compose --env-file .env.docker up -d --build

Note: The first time you run this command, the script will check if a Symfony application already exists. If not, it will automatically install a fresh one based on the env variables. This process can take a few minutes, so please be patient.

Connect to Shell inside webserver container :

$ docker exec -ti php /bin/bash

Stop the containers :

$ docker compose down --remove-orphans

Go to http://localhost:8080

Usage

Access to your app http://localhost:8080

Access to Maildev http://localhost:8383

Configuration

You can configure PHP, Caddy, and supervisor in /config

To work with Maildev, you need to edit the Symfony .env :

MAILER_DSN=smtp://mail:25

About

🐳 Docker stack for Symfony I PHP8 I Caddy I MariaDB I Supervisor I NPM I Symfony CLI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published