Skip to content

adyassine/symfony4-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockernize Symfony4 Stack : Nginx, MariaDB, ES

An environment based on docker and docker-compose to run Symfony4

Setup

First, clone the repo

$ git clone repo
$ cd symfony4-docker

Setup

Start containers with docker-compose :

$ docker-compose up -d --build

Add www.app.dev to the hosts file :

$ sudo vi /etc/hosts  # add 127.0.0.1 www.app.dev

To preview the demo :

http://www.app.dev/hello/demo # or http://www.app.dev:[YOUR_PORT]/hello/demo

SSH on aya_app container :

$ docker ps
$ docker exec -it [CONTANER_ID|CONTANER_NAME] /bin/bash  #aya_app
$ composer install

To stop all Docker containers:

$ docker stop $(docker ps -a -q)

About

Symfony 4 dockernized

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published