承接 opctim/symfony-docker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.
  • db which 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

  1. In your project root, run docker-compose up -d

  2. You should work inside the php container.

  3. Inside the php container, run composer install to install dependencies from /var/www/symfony folder.

  4. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 156
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固