"# Ansible-Deploy-Docker-Symfony"
This architecture proposes a reutilisable code and easy to maintain. It also provides good practice like MVC layout and object oriented.
This application works with the symfony framework ( 5.0.5 ).
- Symfony
- Docker ( configure your environment)
- Ansible ( deploy with ansible folder)
for now, the application is deployed on a raspberry (local IP in Ansible)
-
clone this project on your environment
-
configure your variable environment
-
run
composer install
-
run
php bin/console d:d:c
-
run
php bin/console d:m:m
-
run
php bin/console d:f:l -n
-
You can run this project with docker containers ( docker-compose included in this repository )
run this project with docker containers (docker-compose included in this repository )
docker-compose up -d
ansible-playbook ansible/playbook.yml -i ansible/hosts.ini --ask-vault-pass
if you want to modify this project, the following links you may be useful
- https://symfony.com/doc/current/index.html#gsc.tab=0
- https://www.docker.com/
- https://docs.ansible.com/ansible/latest/index.html
Standard :
- PSR2 ( https://www.php-fig.org/psr/psr-2/ )