docker update to hub
This commit is contained in:
parent
d7558542ef
commit
409041c98c
6
btc-UI/package-lock.json
generated
6
btc-UI/package-lock.json
generated
@ -8215,9 +8215,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/form-data": {
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz",
|
||||
"integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==",
|
||||
"version": "4.0.4",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
|
||||
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export class ApplicationHttpRouts {
|
||||
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 PORT_NUMBER: string = '8083';
|
||||
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,8 +1,8 @@
|
||||
1
|
||||
/var/lib/postgresql/data
|
||||
1753700354
|
||||
1753785959
|
||||
5432
|
||||
/var/run/postgresql
|
||||
*
|
||||
3938413 0
|
||||
4063468 0
|
||||
ready
|
||||
|
||||
@ -31,7 +31,7 @@ services:
|
||||
|
||||
spring:
|
||||
#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
|
||||
ports:
|
||||
- "8083:8080"
|
||||
@ -41,10 +41,8 @@ services:
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/horse
|
||||
SPRING_DATASOURCE_USERNAME: postgres # Ensure this matches POSTGRES_USER
|
||||
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
|
||||
volumes:
|
||||
- ../springHorse:/app
|
||||
networks:
|
||||
- app_network
|
||||
depends_on:
|
||||
|
||||
@ -1,20 +1,9 @@
|
||||
# Step 1: Build the Spring Boot app
|
||||
FROM maven:3.9.6-eclipse-temurin-21-alpine AS builder
|
||||
FROM openjdk:21-jdk-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN mvn clean package -DskipTests
|
||||
COPY target/cezenhorse-0.0.1-SNAPSHOT.jar /app/app.jar
|
||||
|
||||
# Step 2: Run the app with a minimal Alpine JRE
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
CMD ["java", "-jar", "/app/app.jar"]
|
||||
|
||||
# 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"]
|
||||
|
||||
|
||||
@ -3,14 +3,14 @@ spring.application.name=cezenHorse
|
||||
#server.port=8083
|
||||
server.address=0.0.0.0
|
||||
|
||||
#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.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.password = root
|
||||
|
||||
#spring.datasource.url = jdbc:postgresql://bblablabla
|
||||
#spring.datasource.username = postgres
|
||||
#spring.datasource.password = root
|
||||
|
||||
Loading…
Reference in New Issue
Block a user