Git Product home page Git Product logo

docker-php-apache-mysql-composer's Introduction

Docker Compose for Symfony 4 with PHP, Apache, mySQL and Composer

This git provides a docker infrastructure for Symfony for development.

Configuration

You can modify PHP version, mySQL version, mySQL credentials and Apache HTTP port in the /.env environment file. When you download this branch please create your environment settings. Don't forget to create mysql root and dev user passwords.

$ cp .env.dist .env

After modification please run

$ docker-compose build

How to install Symphony 4?

First start the docker containers:

$ docker-compose up -d

Then enter the php_web container with the dev user to install Symphony 4 with composer: (Symfony not allows to install with root user)

$ docker exec -u dev -it php_web bash

Change directory to /var/www where is the mapped site folder and please run the standard composer command to install all the necessary codes. Important: always use the word site as the directory parameter.

$ cd /var/www
$ composer create-project symfony/website-skeleton site

In your code editor you will see the /site folder contains all the Symfony codes. This folder mapped to the /var/www/site path.

docker-php-apache-mysql-composer's People

Contributors

rezsolt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.