From d5a2650ac68c25bfc7cea33a97a8521880c35612 Mon Sep 17 00:00:00 2001 From: "n.tolstov" Date: Sun, 30 Nov 2025 19:57:50 +0300 Subject: [PATCH] chore: Adjust Docker Compose service port mappings and frontend API URLs, and remove direct PostgreSQL port exposure. --- docker-compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7a14ba3..99e26d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,8 +9,8 @@ services: POSTGRES_DB: sport_programming volumes: - postgres_data:/var/lib/postgresql/data - ports: - - "5432:5432" + # ports: + # - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U sport_prog -d sport_programming"] interval: 5s @@ -43,7 +43,7 @@ services: volumes: - ./backend:/app ports: - - "8000:8000" + - "8091:8000" depends_on: db: condition: service_healthy @@ -58,14 +58,14 @@ services: dockerfile: Dockerfile container_name: sp-frontend environment: - - NEXT_PUBLIC_API_URL=http://localhost:8000 - - NEXT_PUBLIC_WS_URL=ws://localhost:8000 + - NEXT_PUBLIC_API_URL=http://localhost:8091 + - NEXT_PUBLIC_WS_URL=ws://localhost:8091 volumes: - ./frontend:/app - /app/node_modules - /app/.next ports: - - "3000:3000" + - "3091:3000" depends_on: - backend restart: unless-stopped