Skip to content

Commit

Permalink
Docs(#26): Add Docker setup guide for Django backend
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Jan 21, 2024
1 parent f5906e8 commit d15b3f2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/docker.md
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
```

0 comments on commit d15b3f2

Please sign in to comment.