https://github.com/eddaoust/docker-symfony
🐳 Docker stack for Symfony I PHP8 I Caddy I MariaDB I Supervisor I NPM I Symfony CLI
https://github.com/eddaoust/docker-symfony
caddy debian docker docker-compose mariadb npm php php82 php83 php84 supervisor symfony xdebug
Last synced: 2 months ago
JSON representation
🐳 Docker stack for Symfony I PHP8 I Caddy I MariaDB I Supervisor I NPM I Symfony CLI
- Host: GitHub
- URL: https://github.com/eddaoust/docker-symfony
- Owner: Eddaoust
- License: isc
- Created: 2021-09-14T14:53:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-19T08:40:41.000Z (5 months ago)
- Last Synced: 2025-06-19T09:39:56.157Z (5 months ago)
- Topics: caddy, debian, docker, docker-compose, mariadb, npm, php, php82, php83, php84, supervisor, symfony, xdebug
- Language: Dockerfile
- Homepage:
- Size: 40 KB
- Stars: 9
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
# 🐳 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](https://maildev.github.io/maildev/)
## Installation
Edit the ```.env.docker``` file
Build & run the stack :
```shell
$ 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 :
```shell
$ docker exec -ti php /bin/bash
```
Stop the containers :
```shell
$ 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``` :
```yaml
MAILER_DSN=smtp://mail:25
```