feat: route Spring Boot & Vite through nginx

This commit is contained in:
2026-05-01 23:35:04 +01:00
parent 3418267829
commit a9e8b7fe78

View File

@@ -21,8 +21,8 @@ services:
- postgres
env_file:
- .env
ports:
- "8080:8080"
environment:
FRONTEND_URL: http://localhost
restart: unless-stopped
frontend:
@@ -32,11 +32,24 @@ services:
container_name: vod_frontend
env_file:
- .env
environment:
VITE_API_URL: ""
depends_on:
- backend
restart: unless-stopped
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
container_name: vod_nginx
depends_on:
- backend
- frontend
ports:
- "5173:5173"
- "80:80"
- "1935:1935"
restart: unless-stopped
volumes:
postgres_data:
postgres_data: