2017 © Pedro Peláez
 

project symfony-standard

The "Symfony Standard Edition" distribution

image

amsdard/symfony-standard

The "Symfony Standard Edition" distribution

  • Friday, November 24, 2017
  • by krzysztof-kabala
  • Repository
  • 1 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1290 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Symfony Standard Edition - AS docker edition

See DOCS for more details., (*1)

Requirements

Create project

  • git only way
git clone git@github.com:amsdard/symfony-standard.git project-name
# cd to project directory
yake composer install
  • global composer way
composer create-project amsdard/symfony-standard project-name

First project install

yake configure-docker
# configure each "./docker/*/config.env"
yake up
yake console assetic:watch   # run in background
  • directory name project-name will become Your domain name: project-name.app and Your container's image tag namespace
  • remove YAKE configure-docker task from Yakefile
  • update composer.json by Your project name, description
  • do not use require-dev in composer.json (keep common vendors)
  • if You want to use local composer (based on PHP image) - RECOMMENDED:
curl -fsSL 'https://getcomposer.org/composer.phar' -o ./composer.phar

and replace YAKE composer task by:, (*2)

composer: $BIN php ./composer.phar --optimize-autoloader $CMD
  • run yake console assetic:watch in background to work with assets
  • yake console assetic:dump --env=prod --no-debug before deploy

Deploy (dev / rancher)

yake push php
yake push nginx
  • import ./deploy/rancher/docker-compose.yml into Rancher + complete ENVs
  • make sure mysql works on specific host (Scheduling)
  • make sure nginx has Health Check enabled

Deploy (prod)

yake push php
yake push nginx
  • import ./deploy/prod/docker-compose.yml into server + copy ENV files from docker directory
  • docker-compose pull --parallel --quiet
  • docker-compose up -d --force-recreate

The Versions