opctim/symfony-docker
最新稳定版本:1.0.0
Composer 安装命令:
composer require opctim/symfony-docker
包简介
This is a complete stack for running Symfony 6 with PHP-FPM 8.1 and MySQL 8 into Docker containers using docker-compose tool.
关键字:
README 文档
README
Archived in favor of https://github.com/dunglas/symfony-docker
This project is a fork from ger86/symfony-docker.
Description
This is a complete stack for running Symfony 6.1 in Docker containers using docker-compose.
It is composed by 3 containers:
nginx, acting as the webserver.php, the PHP-FPM container with the 8.1 version of PHP.dbwhich is the MariaDB database container with a MariaDB 10.8 image.
Project setup
Notice: For this you'll need composer to be installed on your local machine.
If you want to use this project as a base template for your new project, simply initialize your project using:
composer create-project opctim/symfony-docker <your new project directory name>
This will set everything up for you. You can have a look what it does post-install here
Manual Installation
Clone or download this repo instead of running composer create-project.
Infrastructure setup
-
In your project root, run
docker-compose up -d -
You should work inside the
phpcontainer. -
Inside the
phpcontainer, runcomposer installto install dependencies from/var/www/symfonyfolder. -
Use the following value for the DATABASE_URL environment variable:
DATABASE_URL=mysql://root:your_db_password@db:3306/app_db?serverVersion=mariadb-10.8.2
You can change the database and nginx settings in the .env file at the root of the project. This file is meant to be tracked by git.
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-11