Skip to content

Docker + nginx + php-fpm + bash-profile + composer for symfony projects

License

Notifications You must be signed in to change notification settings

HouseOfAgile/docker-nginx-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0a03f80 · Oct 11, 2018

History

40 Commits
Feb 11, 2016
Feb 9, 2016
Feb 11, 2016
Feb 11, 2017
Feb 11, 2017
Sep 6, 2018
Sep 18, 2018
Jun 3, 2015
Aug 26, 2016
Feb 11, 2017
Jun 9, 2015
Oct 11, 2018
Jun 9, 2015

Repository files navigation

docker-nginx-symfony

Docker + nginx + php-fpm + bash-profile + symfony manager + composer for symfony projects

This docker instance is based on docker phusion base-image

How it works

This docker image is based on bash-profile and symfony manager to deploy and install symfony projects.

##Specific configuration

There are 3 directories to stores your file:

  • ./config/sm-config : sm-config files. Need to start with sm-config and should contain the main variables used by symfony manager (see symfony manager). Name of the file is used in order to find the directory containing specific files
  • ./config/projects : put specific files related to your projects. Each files and directory path should be complete and within a directory with the name of the project specified
  • ./config/ssh-keys : put here your ssh-keys if you are using private repos.

Recomended way to use it

Just "inherit" from this image and copy your own files in the correct directories

FROM houseofagile/docker-nginx-symfony:latest

ADD ./config/projects /root/projects
ADD ./config/ssh-keys /root/ssh-keys
ADD ./config/sm-config /root/.symfony-manager/sm-config

EXPOSE 80
CMD ["/sbin/my_init"]

Build your image with your project name

docker build -t "houseofagile/my-symfony-project:v1" .
PROJECT_NAME=your-project DOMAIN_NAMES="www.awesomedomain.com,amazingotherdomain.xyz" && docker run -e VIRTUAL_HOST="$DOMAIN_NAMES" -e LETSENCRYPT_HOST="$DOMAIN_NAMES" -e LETSENCRYPT_EMAIL="[email protected]" -h $PROJECT_NAME --name $PROJECT_NAME -d -P houseofagile/my-symfony-project:v1

See docker-nginx-php-fpm base docker for more details.

About

Docker + nginx + php-fpm + bash-profile + composer for symfony projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published