krzysztof-kabala/as-docker-flex

There is no license information available for the latest version (v1.1) of this package.

v1.1 2018-01-11 12:01 UTC

This package is auto-updated.

Last update: 2024-12-15 20:17:51 UTC


README

implement Docker into Your Symfony (^4.0) project using flex

Requirements

Install

Download package by composer (or git clone to Your ~/Projects directory)

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:

composer require symfony/apache-pack
  • see Your new local README.md

Install - Full sample

create a new project

composer create-project symfony/skeleton my_project

allow to use community contrib

composer config extra.symfony.allow-contrib true

install basic Symfony components

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

install as-docker

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

run the project

yake yarn install
yake configure
yake up

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