Core Installation (Docker Compose)
This guide sets up the complete stack (Frontend, Backend, Database, Storage) using Docker Compose.
Two-Phase Setup Required
- Goal: Basic set up: sufficient on local, first step for a server setup
- Time: ~15 minutes
1. Prerequisites
- Git & Bash terminal
- Docker & Docker Compose
- Just runner (Installation Guide ⧉)
2. Setup Flow
Two-Phase Setup Required
Why? You must start the storage service (Garage) first to generate the Access Keys needed by the application.
Step 1: Initialize Configuration
Clone the repo and create the required environment files.
git clone git@github.com:sdsc-ordes/debates-analytics.git
cd debates-analytics
# 1. Config for the docker compose
cp config/.env.core.tmpl config/.env
# 2. Config for Application Secrets
cp config/.env.secrets.tmpl config/.env.secrets
Action: Open config/.env.secrets and fill in the following (leave S3 blank for now):
- Mongo Passwords: Generate random strings (e.g.,
openssl rand -hex 4). - Hugging Face Token: Your API token for model access.
Step 2: Bootstrap Storage (Generate Keys)
Start the storage service to generate your S3 credentials.
- Start Garage:
(Wait for Container garage Started)
-
Generate Credentials:
-
Copy the Output: Note the
Key IDandSecret keyfrom the terminal output.
Step 3: Finalize & Launch
-
Update Secrets: Open
deploy/compose/.env.secretsagain and paste your keys: -
Build and Run:
Verification
Once running, access your services:
| Service | URL | Note |
|---|---|---|
| Frontend | http://localhost:3000 |
Main UI |
| API Docs | http://localhost:8082/docs |
Backend Swagger |
| Logs | http://localhost:8080/logs |
Container Logs |
| Mongo UI | http://localhost:8081 |
Use credentials from `.env. |
| Solr UI | http://localhost:8983 | Use credentials from.env.secrets` |
Next Steps
- Local Use: Go to the User Guide.
- Public Access: Continue to Server Configuration.