chore: Adjust Docker Compose service port mappings and frontend API URLs, and remove direct PostgreSQL port exposure.
This commit is contained in:
parent
0aed8f5494
commit
d5a2650ac6
@ -9,8 +9,8 @@ services:
|
|||||||
POSTGRES_DB: sport_programming
|
POSTGRES_DB: sport_programming
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
ports:
|
# ports:
|
||||||
- "5432:5432"
|
# - "5432:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U sport_prog -d sport_programming"]
|
test: ["CMD-SHELL", "pg_isready -U sport_prog -d sport_programming"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@ -43,7 +43,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./backend:/app
|
- ./backend:/app
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8091:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -58,14 +58,14 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: sp-frontend
|
container_name: sp-frontend
|
||||||
environment:
|
environment:
|
||||||
- NEXT_PUBLIC_API_URL=http://localhost:8000
|
- NEXT_PUBLIC_API_URL=http://localhost:8091
|
||||||
- NEXT_PUBLIC_WS_URL=ws://localhost:8000
|
- NEXT_PUBLIC_WS_URL=ws://localhost:8091
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app
|
- ./frontend:/app
|
||||||
- /app/node_modules
|
- /app/node_modules
|
||||||
- /app/.next
|
- /app/.next
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3091:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user