chore: Adjust Docker Compose service port mappings and frontend API URLs, and remove direct PostgreSQL port exposure.

This commit is contained in:
n.tolstov 2025-11-30 19:57:50 +03:00
parent 0aed8f5494
commit d5a2650ac6

View File

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