krzysztof-kabala / as-docker-flex
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Shell
This package is auto-updated.
Last update: 2024-11-15 20:11:19 UTC
README
implement Docker into Your Symfony (^4.0) project using flex
Requirements
- configure Your local projects enrironment
- [optional] install composer globally global composer command
- make sure You have YAKE installed
- symfony ^4.0 with flex and basic components (see Full sample) installed
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