damienSavoldelli / symfony-sonata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

symfony-docker

base symfony project with docker features

Requirements:

  • *nix environnment
  • docker installed
  • current user in docker group
  • php cli enabled
  • php 5.4 minimum (for the built in server)

How to use it

clone this project

  git clone git@github.com:jguido/symfony-docker.git

Install dependencies

  composer install

Answer composer's question for the database connection, smtp and others (you can set database information to default, you will need to return to the parameters file after)

After installation with composer finish run

  sh run.sh dev
  or
  sh run.sh prod

You can specify some options in the sh file

  • port : the external port use for accesing the database
  • DOMAIN_NAME: the name of the project
  • FILE_NAME : the name of the folder user for the docker persistence

The script will give you information about the database connection from the docker image

And it runs and built in web server (you can specify the host and port at the end of the script)

Your application will be accessible through 127.0.0.1:8050/app_dev.php

that's all folks

About

License:GNU General Public License v2.0


Languages

Language:PHP 71.1%Language:HTML 23.4%Language:ApacheConf 3.5%Language:Shell 2.0%