-
Install
docker
,docker-compose
,docker-sync
-
Create a
.env
from the.env.dist
file and adapt it according to the needs of the application$ cp .env.dist .env && vim .env
-
Build/run containers in detached mode and run docker-sync
$ docker-compose build $ docker volume create --name=app-sync $ docker-compose up -d $ docker-sync start
On the next run you may use
$ docker-sync-stack start
command which dodocker-compose up && docker-sync start
After rebuilding container or changing .yml file run
$ docker-sync clean
-
Update your system's hosts file
-
Prepare the Symfony application
-
Update Symfony parameters (app/config/parameters.yml)
-
Composer install & create database
$ docker-compose exec php bash $ composer install $ sf doctrine:database:create $ sf doctrine:schema:update --force $ sf server:start 0.0.0.0:8000
-
-
Yarn
$ docker-compose run --rm nodejs yarn install $ docker-compose run --rm nodejs yarn run [command]
to run command in watch mode use
--watch
$ docker-compose run --rm nodejs yarn run [command] --watch
-
Notifications
You must be signed in to change notification settings - Fork 2
Docker stack for Microservice architecture with Symfony 3.4, Symfony 4.2, included php7.2-fpm, php7.3-fpm, nginx, RabbitMQ, Redis, Centrifugo, Elasticsearch, Kibana + bonus Docker-Sync (for MacOS)
License
RuslanKononov/docker-for-symfony
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Docker stack for Microservice architecture with Symfony 3.4, Symfony 4.2, included php7.2-fpm, php7.3-fpm, nginx, RabbitMQ, Redis, Centrifugo, Elasticsearch, Kibana + bonus Docker-Sync (for MacOS)
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published