refactor: hardcode ports in docker-compose.yml for server deployment

- Remove env variable substitution from docker-compose.yml ports
- Hardcode custom ports directly in compose file: 7080, 7081, 7082, 7700, 6432
- Remove PORT variables from .env.example (now configured in docker-compose.yml)
- Add documentation on how to change ports (edit docker-compose.yml directly)
- Simplifies server deployment - no need to export env variables before docker-compose up

Note: To change ports, edit infra/docker-compose.yml directly
This commit is contained in:
2026-03-06 21:24:45 +01:00
parent 47e53a19b9
commit d86301919d
2 changed files with 17 additions and 27 deletions

View File

@@ -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