diff --git a/.env.example b/.env.example index ff425ae..2548119 100644 --- a/.env.example +++ b/.env.example @@ -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 # ============================================================================= diff --git a/infra/docker-compose.yml b/infra/docker-compose.yml index 47535f3..f27f419 100644 --- a/infra/docker-compose.yml +++ b/infra/docker-compose.yml @@ -6,7 +6,7 @@ services: POSTGRES_USER: stripstream POSTGRES_PASSWORD: stripstream ports: - - "5432:5432" + - "${POSTGRES_PORT:-5432}:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: @@ -20,7 +20,7 @@ services: env_file: - ../.env ports: - - "7700:7700" + - "${MEILI_PORT:-7700}:7700" volumes: - meili_data:/meili_data healthcheck: @@ -54,7 +54,7 @@ services: env_file: - ../.env ports: - - "8080:8080" + - "${API_PORT:-8080}:8080" volumes: - ${LIBRARIES_HOST_PATH:-../libraries}:/libraries depends_on: @@ -77,7 +77,7 @@ services: env_file: - ../.env ports: - - "8081:8081" + - "${INDEXER_PORT:-8081}:8081" volumes: - ${LIBRARIES_HOST_PATH:-../libraries}:/libraries depends_on: