From a9e8b7fe78298d806d5974278cd2f3e6cce9259e Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Fri, 1 May 2026 23:35:04 +0100 Subject: [PATCH] feat: route Spring Boot & Vite through nginx --- docker-compose.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 896c343..4c857aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: \ No newline at end of file + postgres_data: