- Update docker-compose.yml healthchecks to use env variables instead of hardcoded ports
- Restructure .env.example to define each port only once
- Auto-generate service URLs from port variables using ${PORT} syntax
- Document the configuration structure with clear sections
- Makes it easier to change ports without updating multiple variables
67 lines
2.3 KiB
Plaintext
67 lines
2.3 KiB
Plaintext
# Stripstream Librarian - Environment Configuration
|
|
#
|
|
# HOW TO USE:
|
|
# 1. Copy this file to .env: cp .env.example .env
|
|
# 2. Change the REQUIRED values below
|
|
# 3. Optionally change ports if you have conflicts
|
|
# 4. Run: docker-compose up --build
|
|
|
|
# =============================================================================
|
|
# REQUIRED - Change these values in production!
|
|
# =============================================================================
|
|
|
|
# Master key for Meilisearch authentication (required)
|
|
MEILI_MASTER_KEY=change-me-in-production
|
|
|
|
# Bootstrap token for initial API admin access (required)
|
|
# Use this token for the first API calls before creating proper API tokens
|
|
API_BOOTSTRAP_TOKEN=change-me-in-production
|
|
|
|
# =============================================================================
|
|
# Port Configuration (change only if you have port conflicts)
|
|
# =============================================================================
|
|
|
|
# Main application ports
|
|
API_PORT=8080
|
|
INDEXER_PORT=8081
|
|
BACKOFFICE_PORT=8082
|
|
|
|
# Infrastructure ports
|
|
MEILI_PORT=7700
|
|
POSTGRES_PORT=5432
|
|
|
|
# =============================================================================
|
|
# Service URLs (auto-generated from ports above - don't change unless you know what you're doing)
|
|
# =============================================================================
|
|
|
|
# API Service
|
|
API_LISTEN_ADDR=0.0.0.0:${API_PORT}
|
|
API_BASE_URL=http://api:${API_PORT}
|
|
|
|
# Indexer Service
|
|
INDEXER_LISTEN_ADDR=0.0.0.0:${INDEXER_PORT}
|
|
INDEXER_SCAN_INTERVAL_SECONDS=5
|
|
|
|
# Backoffice Web UI
|
|
# Uses BACKOFFICE_PORT from above
|
|
|
|
# Meilisearch Search Engine
|
|
MEILI_URL=http://meilisearch:${MEILI_PORT}
|
|
|
|
# PostgreSQL Database
|
|
DATABASE_URL=postgres://stripstream:stripstream@postgres:${POSTGRES_PORT}/stripstream
|
|
|
|
# =============================================================================
|
|
# Storage Configuration
|
|
# =============================================================================
|
|
|
|
# Path to libraries directory inside container
|
|
# In Docker: leave as default /libraries
|
|
# For local dev: set to your local libraries folder path
|
|
LIBRARIES_ROOT_PATH=/libraries
|
|
|
|
# Path to libraries directory on host machine (for Docker volume mount)
|
|
# Default: ../libraries (relative to infra/docker-compose.yml)
|
|
# You can change this to an absolute path on your machine
|
|
LIBRARIES_HOST_PATH=../libraries
|