diff --git a/.env.example b/.env.example index 360f6f0..6b5ccb3 100644 --- a/.env.example +++ b/.env.example @@ -3,8 +3,7 @@ # 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 +# 3. Run: docker-compose up --build # ============================================================================= # REQUIRED - Change these values in production! @@ -18,21 +17,7 @@ MEILI_MASTER_KEY=change-me-in-production API_BOOTSTRAP_TOKEN=change-me-in-production # ============================================================================= -# Port Configuration (change only if you have port conflicts) -# Update both the PORT variable AND the URL variables below -# ============================================================================= - -# Main application ports -API_PORT=8080 -INDEXER_PORT=8081 -BACKOFFICE_PORT=8082 - -# Infrastructure ports -MEILI_PORT=7700 -POSTGRES_PORT=5432 - -# ============================================================================= -# Service URLs (update these when you change ports above!) +# Service Configuration # ============================================================================= # API Service @@ -43,15 +28,10 @@ API_BASE_URL=http://api:8080 INDEXER_LISTEN_ADDR=0.0.0.0:8081 INDEXER_SCAN_INTERVAL_SECONDS=5 -# Backoffice Web UI -# Uses BACKOFFICE_PORT from above - # Meilisearch Search Engine MEILI_URL=http://meilisearch:7700 # PostgreSQL Database -# Note: Always use port 5432 here (internal Docker port) -# Change POSTGRES_PORT above only for the external mapping DATABASE_URL=postgres://stripstream:stripstream@postgres:5432/stripstream # ============================================================================= @@ -67,3 +47,13 @@ LIBRARIES_ROOT_PATH=/libraries # Default: ../libraries (relative to infra/docker-compose.yml) # You can change this to an absolute path on your machine LIBRARIES_HOST_PATH=../libraries + +# ============================================================================= +# Port Configuration +# ============================================================================= +# To change ports, edit docker-compose.yml directly: +# - API: change "7080:8080" to "YOUR_PORT:8080" +# - Indexer: change "7081:8081" to "YOUR_PORT:8081" +# - Backoffice: change "7082:8082" to "YOUR_PORT:8082" +# - Meilisearch: change "7700:7700" to "YOUR_PORT:7700" +# - PostgreSQL: change "6432:5432" to "YOUR_PORT:5432" diff --git a/infra/docker-compose.yml b/infra/docker-compose.yml index ed8ccbc..b213d5a 100644 --- a/infra/docker-compose.yml +++ b/infra/docker-compose.yml @@ -6,7 +6,7 @@ services: POSTGRES_USER: stripstream POSTGRES_PASSWORD: stripstream ports: - - "${POSTGRES_PORT:-5432}:5432" + - "6432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: @@ -20,7 +20,7 @@ services: env_file: - ../.env ports: - - "${MEILI_PORT:-7700}:7700" + - "7700:7700" volumes: - meili_data:/meili_data healthcheck: @@ -54,7 +54,7 @@ services: env_file: - ../.env ports: - - "${API_PORT:-8080}:8080" + - "7080:8080" volumes: - ${LIBRARIES_HOST_PATH:-../libraries}:/libraries depends_on: @@ -77,7 +77,7 @@ services: env_file: - ../.env ports: - - "${INDEXER_PORT:-8081}:8081" + - "7081:8081" volumes: - ${LIBRARIES_HOST_PATH:-../libraries}:/libraries depends_on: @@ -103,7 +103,7 @@ services: - PORT=8082 - HOST=0.0.0.0 ports: - - "${BACKOFFICE_PORT:-8082}:8082" + - "7082:8082" depends_on: api: condition: service_healthy