2017 © Pedro Pelรกez
 

library symfony-as-docker

image

amsdard/symfony-as-docker

  • Friday, June 29, 2018
  • by krzysztof-kabala
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 30 % Grown

The README.md

AS docker - Symfony (flex)

implement Docker into your Symfony (^4.0) project using flex, (*1)

Requirements

Install (when you have already an existing project)

In your project directory, download the package by composer (or git clone to your ~/Projects directory), (*2)

composer require amsdard/symfony-as-docker
  • php+nginx mode (default)
./vendor/amsdard/symfony-as-docker/setup
  • apache mode
./vendor/amsdard/symfony-as-docker/setup apache

in case of apache mode, You may also need:, (*3)

composer require symfony/apache-pack

Install - Full sample (when you install a new project)

In your ~/Projects directory, create a new project (a new my_project directory will be created), (*4)

composer create-project symfony/skeleton my_project

Go to your ~/Projects/my_project and run the following command to allow using a community contrib, (*5)

composer config extra.symfony.allow-contrib true

install basic Symfony components, (*6)

composer require annotations validator encore asset translator security debug-pack make

install as-docker, (*7)

composer require amsdard/symfony-as-docker
./vendor/amsdard/symfony-as-docker/setup

run the project, (*8)

yake yarn install
yake configure
yake up

now you can run yake console make:controller Home and go to http://my_project.test/home, (*9)

How it works

  • below file structure will be installed
.
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ docker-compose.yml
โ”œโ”€โ”€ Yakefile
โ”œโ”€โ”€ deploy
โ”‚ย ย  โ”œโ”€โ”€ prod
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ docker-compose.yml
โ”‚ย ย  โ””โ”€โ”€ rancher
โ”‚ย ย      โ””โ”€โ”€ docker-compose.yml
โ””โ”€โ”€ docker
 ย ย  โ”œโ”€โ”€ mysql
 ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.env
 ย ย  โ”‚ย ย  โ””โ”€โ”€ config.env.dist
 ย ย  โ”œโ”€โ”€ nginx
 ย ย  โ”‚ย ย  โ”œโ”€โ”€ Dockerfile
 ย ย  โ”‚ย ย  โ””โ”€โ”€ default.conf
 ย ย  โ””โ”€โ”€ php
 ย ย      โ””โ”€โ”€ Dockerfile
  • your project directory name will be filled as local domain name and docker image namespace (see docker-compose.yml)
  • new rules will be added to your .gitignore file:
    • /composer.phar internal project composer
    • /docker/*/*.env container ENV

The Versions

29/06 2018

dev-master

9999999-dev

  Sources   Download

29/06 2018

v1.2.3

1.2.3.0

  Sources   Download

22/05 2018

v1.2.2

1.2.2.0

  Sources   Download

22/05 2018

v1.2.1

1.2.1.0

  Sources   Download

30/01 2018

v1.2

1.2.0.0

  Sources   Download

11/01 2018

v1.1

1.1.0.0

  Sources   Download

09/01 2018

v1.0

1.0.0.0

  Sources   Download