Skip to content

Latest commit

 

History

History

backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Backend docker setup

execute the following commands to build the docker container

cd backend
docker-compose build 
docker-compose up -d mongo 
docker-compose up -d app

Now the backend is running on port 4000, you can check it by hitting the following url

http://localhost:4000

command for enlisting the docker images

docker images

command for checking the logs of the docker container

docker logs <container id>

command for running the docker image

docker run -p 4000:4000 <image id>

command for stopping the docker compose

docker-compose stop

command for enlisting the docker containers

docker ps -a

command for deleting the docker images

docker rmi backend or docker rmi <image id>