Includes:
.Symfony4 (with Flex)
.Sqlite3
.PHP-FPM 7
.Nginx
.NodeJS (for webpack)
.ELK (Elasticsearch, Logstash, Kibana)
First, clone this repository:
$ git clone https://github.com/emiliosa/docker-symfony.git
- Symfony app into
mediamonks-demo
folder. - Add into host file
127.0.0.1 localhost.mediamonks-demo.com
$ docker-compose up -d
Rebuild images
$ docker-compose build
Now, follow mediamonks-demo
Readme.
Access inside container (you can execute composer
or php bin/console
commands):
$ docker exec -it dockersymfony_php_1 sh
Overwhise you execute from outside:
$ docker exec -it dockersymfony_php_1 composer install
$ docker exec -it dockersymfony_php_1 php bin/console
$ docker exec -it dockersymfony_nodejs_1 yarn
You can access Nginx and Symfony application logs in the following directories on your host machine:
logs/nginx
logs/symfony
You can also use Kibana to visualize Nginx & Symfony logs by visiting http://localhost.mediamonks-demo.com:81