Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 phpmyadmin 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-22T07:49:51.000Z (about 1 year ago)
- Last Synced: 2024-10-12T13:01:32.798Z (2 months ago)
- Topics: caddy, debian, docker, docker-compose, mariadb, npm, php, php82, php83, phpmyadmin, supervisor, symfony, xdebug
- Language: Dockerfile
- Homepage:
- Size: 24.4 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- 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 + PhpMyadmin
* Node + NPM for building assets
* Composer v2
* [Maildev](https://maildev.github.io/maildev/)## Installation
Edit the ```.env``` fileBuild & run the stack :
```shell
$ docker-compose up -d
```
Connect to Shell inside webserver container :
```shell
$ docker exec -ti php-fpm /bin/bash
```
Install Symfony app :
```shell
$ symfony new ./ --webapp
```
Go to ```http://localhost:8080```
## Usage
Access to your app ```http://localhost:8080```Access to PHPMyAdmin ```http://localhost:8282```
Access to Maildev ```http://localhost:8383```
## Configuration
You can configure PHP, Xdebug, Vhost and supervisor in ```/config```To work with Maildev, you need to edit the Symfony ```.env``` :
```yaml
MAILER_DSN=smtp://mail:25
```## Logs
You can check Caddy & Mysql logs in ```/logs```Check container logs :
```shell
$ docker logs -f php-fpm
```## Misc
### Supervisor
If you want to debug if supervisor handle some tasks, just type the following in the container shell to see the process logs :
```shell
$ supervisord
```
### Docker
Rebuild the stack :
```shell
$ docker-compose up --build -d
```
Stop the stack :
```shell
$ docker-compose down
```
List all containers :
```shell
$ docker ps
```