https://github.com/aritzmmartinez/docker-symfony-7.0
This is a complete stack for running Symfony 7.0 into Docker containers using docker-compose tool
https://github.com/aritzmmartinez/docker-symfony-7.0
docker docker-compose makefile mysql nginx php8 symfony
Last synced: 2 months ago
JSON representation
This is a complete stack for running Symfony 7.0 into Docker containers using docker-compose tool
- Host: GitHub
- URL: https://github.com/aritzmmartinez/docker-symfony-7.0
- Owner: aritzmmartinez
- License: gpl-3.0
- Created: 2024-03-08T16:45:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T12:47:16.000Z (over 2 years ago)
- Last Synced: 2025-03-15T11:11:14.618Z (over 1 year ago)
- Topics: docker, docker-compose, makefile, mysql, nginx, php8, symfony
- Language: PHP
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐳 Docker + Symfony 7.0 + PHP 8.2 + MySQL + Nginx
## Description
This is a complete stack for running Symfony 7.0 into Docker containers using docker-compose tool.
It is composed by 4 containers:
- `nginx`, acting as the webserver (web).
- `php`, the PHP-FPM container with the 8.2 version of PHP (be).
- `db` which is the MySQL database container with a **MySQL 8.0** image (db).
## Installation
1. Clone this repo.
2. If you haven’t already, you’ll need to install Docker and Docker Compose.
3. Before creating the containers, you must adapt the names of the services in the docker.compose.yml and where they are referenced, as well as change the environment variables of the '.env'
4. Thanks to the Makefile file, we can run the 'make run' command to initialize the docker containers.
5. Once the containers have been built, you will need to run 'composer install' inside the php container to install the dependencies.
Good luck with your project! 🍀