fix: update application properties and Dockerfile for local development configuration

This commit is contained in:
almazlar
2026-02-22 13:18:08 +03:00
parent 854a0bace8
commit b5dcba1e11
3 changed files with 2 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
server.port=8082
server.servlet.context-path=/api server.servlet.context-path=/api
spring.application.name=backend spring.application.name=backend
spring.datasource.url=jdbc:postgresql://localhost:5432/tododb spring.datasource.url=jdbc:postgresql://localhost:5432/tododb

View File

@@ -39,8 +39,6 @@ services:
frontend: frontend:
build: build:
context: ./frontend context: ./frontend
args:
VITE_BASE_URL: "http://localhost:8082/api"
container_name: todo-frontend container_name: todo-frontend
ports: ports:
- "5173:80" - "5173:80"

View File

@@ -7,7 +7,7 @@ COPY . .
ARG VITE_APP_VERSION=dev ARG VITE_APP_VERSION=dev
ENV VITE_APP_VERSION=${VITE_APP_VERSION} ENV VITE_APP_VERSION=${VITE_APP_VERSION}
ARG VITE_BASE_URL=https://todo.almazlar.com/api ARG VITE_BASE_URL=http://localhost:8082/api
ENV VITE_BASE_URL=${VITE_BASE_URL} ENV VITE_BASE_URL=${VITE_BASE_URL}
RUN npm run build RUN npm run build