To run this project using Docker, follow the steps below:
- Ensure you have Docker installed on your machine. You can download it from here.
-
Clone the Repository
https://github.com/SeihaHoy/Term4_Final_backend.git cd Term4_Final -
Build the Docker Image
docker-compose up --build
-
Access the Application
Open your web browser and go to
http://localhost:8000to access the application.
To stop the running container, use the following command:
docker stop term4_final_containerTo remove the container, use the following command:
docker rm term4_final_container-
If you need to rebuild the image, use the
--no-cacheoption:docker build --no-cache -t term4_final_image . -
To view the logs of the running container:
docker logs term4_final_container
-
To access the container's shell:
docker exec -it term4_final_container /bin/bash