Skip to content

NazarioR9/rest_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Docker

Description

This repository showcases a complete stack for running a Symfony5 project into Docker. For more information about the project itself, have a look here.

Installation

Here is a quick walkthrough on how to build and run the project into the Docker container.

1. Clone the repository 
2. RUN cd rest_api
3. RUN docker-compose build 
4. RUN docker-compose up -d
5. RUN docker-compose exec php composer install 
6. RUN docker-compose exec php php bin/console doctrine:schema:create
7. RUN docker-compose exec php php bin/console doctrine:fixtures:load

Now, you should be able to see the application running on localhost.
To stop it, run docker-compose stop

PS: You may need to add 'sudo' before each of the 'docker-compose' commands. Like "sudo docker-compose build".