-
Notifications
You must be signed in to change notification settings - Fork 0
How to Run the Backend and Frontend
NightBlackMare edited this page Sep 6, 2024
·
2 revisions
This guide explains how to start the backend and frontend services using Docker Compose. Make sure Docker and Docker Compose are installed on your machine before proceeding.
- Docker: Ensure Docker is installed. You can download Docker here.
- Docker Compose: Docker Compose should be included with Docker Desktop, but if you need to install it separately, follow the instructions here.
To start the services, follow these steps:
-
Open a terminal.
-
Navigate to your project’s root directory if not already there.
-
Run the following command:
docker compose up --build
-
docker compose
: The command used to run Docker Compose. -
up
: Starts and runs the services defined in the Docker Compose file. -
--build
: Rebuilds the images and containers before starting.
To stop the services, you can use the following command in their respective terminals or open a new terminal and run:
docker compose down