-
Clone the repository:
git clone https://github.com/vindio/rindus.git
-
Change directory into the project:
cd rindus
-
Create env files:
- For Linux/macOS:
mkdir .envs touch .env .envs/django .envs/postgres
.env example
USE_DOCKER=yes POSTGRES_HOST=postgres POSTGRES_PORT=5432 POSTGRES_LOCAL_PORT=5432 POSTGRES_DB=rindus_blog POSTGRES_USER=django_db_user POSTGRES_PASSWORD=secret_password DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
.envs/django example
USE_DOCKER=yes IPYTHONDIR=/app/.ipython DJANGO_PORT=8080
.envs/postgres example
POSTGRES_HOST=postgres POSTGRES_PORT=5432 POSTGRES_LOCAL_PORT=5432 POSTGRES_DB=rindus_blog POSTGRES_USER=django_db_user POSTGRES_PASSWORD=secret_password
- For Linux/macOS:
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
-
Install the development requirements.
pip install -r requirements/local.txt
-
Build the image and run the container:
-
Build docker image
docker compose build
-
Run containers
docker compose up -d
-
You can now access the application at http://localhost:8000.