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:
@@ -18,14 +18,22 @@ API_BOOTSTRAP_TOKEN=change-me-in-production
|
|||||||
# API Service
|
# API Service
|
||||||
API_LISTEN_ADDR=0.0.0.0:8080
|
API_LISTEN_ADDR=0.0.0.0:8080
|
||||||
API_BASE_URL=http://api:8080
|
API_BASE_URL=http://api:8080
|
||||||
|
API_PORT=8080
|
||||||
|
|
||||||
# Indexer Service
|
# Indexer Service
|
||||||
INDEXER_LISTEN_ADDR=0.0.0.0:8081
|
INDEXER_LISTEN_ADDR=0.0.0.0:8081
|
||||||
INDEXER_SCAN_INTERVAL_SECONDS=5
|
INDEXER_SCAN_INTERVAL_SECONDS=5
|
||||||
|
INDEXER_PORT=8081
|
||||||
|
|
||||||
# Backoffice Web UI
|
# Backoffice Web UI
|
||||||
BACKOFFICE_PORT=8082
|
BACKOFFICE_PORT=8082
|
||||||
|
|
||||||
|
# Meilisearch Search Engine
|
||||||
|
MEILI_PORT=7700
|
||||||
|
|
||||||
|
# PostgreSQL Database
|
||||||
|
POSTGRES_PORT=5432
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Database Configuration
|
# Database Configuration
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
POSTGRES_USER: stripstream
|
POSTGRES_USER: stripstream
|
||||||
POSTGRES_PASSWORD: stripstream
|
POSTGRES_PASSWORD: stripstream
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "${POSTGRES_PORT:-5432}:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -20,7 +20,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ../.env
|
- ../.env
|
||||||
ports:
|
ports:
|
||||||
- "7700:7700"
|
- "${MEILI_PORT:-7700}:7700"
|
||||||
volumes:
|
volumes:
|
||||||
- meili_data:/meili_data
|
- meili_data:/meili_data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -54,7 +54,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ../.env
|
- ../.env
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "${API_PORT:-8080}:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
|
- ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -77,7 +77,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ../.env
|
- ../.env
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081"
|
- "${INDEXER_PORT:-8081}:8081"
|
||||||
volumes:
|
volumes:
|
||||||
- ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
|
- ${LIBRARIES_HOST_PATH:-../libraries}:/libraries
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user