feat: make all service ports configurable via env variables

- Add API_PORT, INDEXER_PORT, MEILI_PORT, POSTGRES_PORT env variables
- Update docker-compose.yml to use ${VAR:-default} syntax for all ports
- Document new port variables in .env.example
- Allows users to customize ports to avoid conflicts with other services
This commit is contained in:
2026-03-06 20:55:23 +01:00
parent d3e2147982
commit a31c524c32
2 changed files with 12 additions and 4 deletions

View File

@@ -18,14 +18,22 @@ API_BOOTSTRAP_TOKEN=change-me-in-production
# API Service
API_LISTEN_ADDR=0.0.0.0:8080
API_BASE_URL=http://api:8080
API_PORT=8080
# Indexer Service
INDEXER_LISTEN_ADDR=0.0.0.0:8081
INDEXER_SCAN_INTERVAL_SECONDS=5
INDEXER_PORT=8081
# Backoffice Web UI
BACKOFFICE_PORT=8082
# Meilisearch Search Engine
MEILI_PORT=7700
# PostgreSQL Database
POSTGRES_PORT=5432
# =============================================================================
# Database Configuration
# =============================================================================