-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs(#26): Add Docker setup guide for Django backend
- Loading branch information
1 parent
f5906e8
commit d15b3f2
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# How to Start Docker for Django Backend | ||
|
||
This guide will cover the steps needed to get The GalacticPathFinder backend environment set up using Docker. | ||
|
||
## Prerequisites | ||
|
||
Before you begin, ensure that you have the following installed: | ||
|
||
- [Docker](https://docs.docker.com/get-docker/) | ||
- [Docker Compose](https://docs.docker.com/compose/install/) | ||
|
||
These tools are required to create your containerized environment. | ||
|
||
## Steps to Start Docker | ||
|
||
Navigate to the root of the project where the `docker-compose.yml` file is located. | ||
|
||
Then run the following commands to build and start your Docker containers: | ||
|
||
```bash | ||
docker-compose build # This command builds the Docker images defined in your docker-compose.yml file. | ||
docker-compose up # This command starts the containers in the foreground. Add -d to run them in the background. | ||
``` | ||
|
||
After running docker-compose up, your Django application should be accessible via `http://localhost:8000` or another port specified in your Docker configuration. | ||
|
||
To stop your Docker containers, you can use: | ||
|
||
```bash | ||
docker-compose down | ||
``` | ||
|
||
To view the status of your Docker containers, you can use: | ||
```bash | ||
docker ps | ||
``` |