docker update to hub

This commit is contained in:
MathewFrancis 2025-07-29 18:22:07 +05:30
parent d7558542ef
commit 409041c98c
21 changed files with 18 additions and 31 deletions

View File

@ -8215,9 +8215,9 @@
} }
}, },
"node_modules/form-data": { "node_modules/form-data": {
"version": "4.0.3", "version": "4.0.4",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
"integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==", "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
export class ApplicationHttpRouts { export class ApplicationHttpRouts {
private static readonly PROTOCOL: string = 'http'; private static readonly PROTOCOL: string = 'http';
private static readonly BACKEND_SERVER: string = '192.168.0.103'; private static readonly BACKEND_SERVER: string = '192.168.0.100';
private static readonly FRONT_PORT_NUMBER: string = '4200'; private static readonly FRONT_PORT_NUMBER: string = '4200';
private static readonly PORT_NUMBER: string = '8083'; private static readonly PORT_NUMBER: string = '8083';
private static readonly SOCKET: string = `${this.PROTOCOL}://${this.BACKEND_SERVER}:${this.PORT_NUMBER}`; private static readonly SOCKET: string = `${this.PROTOCOL}://${this.BACKEND_SERVER}:${this.PORT_NUMBER}`;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,8 @@
1 1
/var/lib/postgresql/data /var/lib/postgresql/data
1753700354 1753785959
5432 5432
/var/run/postgresql /var/run/postgresql
* *
3938413 0 4063468 0
ready ready

View File

@ -31,7 +31,7 @@ services:
spring: spring:
#image: mathewfrancisv/spring_back_postgres:v1.0.0 #image: mathewfrancisv/spring_back_postgres:v1.0.0
image: mathewfrancisv/spring_alpine:v1.0.0 image: mathewfrancisv/btc_cezen_backend:v1.0.0
container_name: spring_app container_name: spring_app
ports: ports:
- "8083:8080" - "8083:8080"
@ -41,10 +41,8 @@ services:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/horse SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/horse
SPRING_DATASOURCE_USERNAME: postgres # Ensure this matches POSTGRES_USER SPRING_DATASOURCE_USERNAME: postgres # Ensure this matches POSTGRES_USER
SPRING_DATASOURCE_PASSWORD: root # Ensure this matches POSTGRES_PASSWORD SPRING_DATASOURCE_PASSWORD: root # Ensure this matches POSTGRES_PASSWORD
SPRING_DATASOURCE_CORSIP: http://10.222.236.167:4200 SPRING_DATASOURCE_CORSIP: http://192.168.0.100:4200
#network_mode: host #network_mode: host
volumes:
- ../springHorse:/app
networks: networks:
- app_network - app_network
depends_on: depends_on:

View File

@ -1,20 +1,9 @@
# Step 1: Build the Spring Boot app FROM openjdk:21-jdk-slim
FROM maven:3.9.6-eclipse-temurin-21-alpine AS builder
WORKDIR /app WORKDIR /app
COPY . . COPY target/cezenhorse-0.0.1-SNAPSHOT.jar /app/app.jar
RUN mvn clean package -DskipTests
# Step 2: Run the app with a minimal Alpine JRE EXPOSE 8080
FROM eclipse-temurin:21-jre-alpine CMD ["java", "-jar", "/app/app.jar"]
WORKDIR /app
# Copy the built JAR from builder stage
COPY --from=builder /app/target/*.jar app.jar
# Optional: Add non-root user
RUN adduser -D springuser
USER springuser
# Run the app
ENTRYPOINT ["java", "-jar", "/app/app.jar"]

View File

@ -3,14 +3,14 @@ spring.application.name=cezenHorse
#server.port=8083 #server.port=8083
server.address=0.0.0.0 server.address=0.0.0.0
#spring.datasource.url = jdbc:postgresql://localhost:5434/horse spring.datasource.url = jdbc:postgresql://localhost:5434/horse
#spring.datasource.username = postgres
#spring.datasource.password = root
spring.datasource.url = jdbc:postgresql://postgres:5432/horse
spring.datasource.username = postgres spring.datasource.username = postgres
spring.datasource.password = root spring.datasource.password = root
#spring.datasource.url = jdbc:postgresql://postgres:5432/horse
#spring.datasource.username = postgres
#spring.datasource.password = root
#spring.datasource.url = jdbc:postgresql://bblablabla #spring.datasource.url = jdbc:postgresql://bblablabla
#spring.datasource.username = postgres #spring.datasource.username = postgres
#spring.datasource.password = root #spring.datasource.password = root