Fakultas Ilmu Komputer UI

Commit 2e42d5e3 authored by Farhan Azyumardhi Azmi's avatar Farhan Azyumardhi Azmi
Browse files

[CHORES] Tidy up README

parent 907195ab
Pipeline #59443 passed with stages
in 12 minutes and 16 seconds
......@@ -10,6 +10,7 @@
- [Description](#description)
- [Initial Setup](#initial-setup)
- [Running Development Environment](#running-development-environment)
- [Running Development Environment with Docker Compose](#running-development-environment-with-docker-compose)
- [Contributors](#contributors)
## Description
......@@ -118,7 +119,7 @@ python3 manage.py loaddata */fixtures/initial.json
Requires [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/).
If you have already created a `.env` file, adjust its content to:
```
```bash
SECRET_KEY=place-your-secret-key-here
IS_LOCAL=True
DB_NAME=marjinal
......@@ -129,44 +130,44 @@ DB_PORT=5432
```
Create a `.env.db` file, fill its content with:
```
```bash
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=marjinal
```
To build and run the containers:
```
```bash
docker-compose up -d --build
```
To run the containers without rebuilding them first:
```
```bash
docker-compose up -d
```
To stop the containers:
```
```bash
docker-compose down
```
To run any command related to the DIGIPUS container:
```
```bash
docker-compose exec digipus <command>
```
For example, to migrate the database:
```
```bash
docker-compose exec digipus python manage.py migrate
```
To run any command related to the database container:
```
```bash
docker-compose exec db <command>
```
For example, to run `psql`:
```
```bash
docker-compose exec db psql -U postgres
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment