fix: update application properties and Dockerfile for local development configuration
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user