Compare commits
5 Commits
be0f0ae49c
...
release/0.
| Author | SHA1 | Date | |
|---|---|---|---|
| aad925bc54 | |||
| 5974f86e29 | |||
| a53744d949 | |||
| 0d2b5b3c22 | |||
| 5726c65e15 |
@@ -1,4 +1,4 @@
|
|||||||
FROM 144.91.121.112:8082/java-17
|
FROM vkhoza/java-17
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -11,4 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
|
|
||||||
RUN mvn clean compile -P production package
|
RUN mvn clean compile -P production package
|
||||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||||
|
|
||||||
|
EXPOSE 6950
|
||||||
|
EXPOSE 8058
|
||||||
|
|
||||||
CMD ["java", "-Djava.awt.headless=true", "-Dspring.profiles.active=nflow.db.postgresql", "-jar", "/app/target/tm-0.0.1-RELEASE.jar"]
|
CMD ["java", "-Djava.awt.headless=true", "-Dspring.profiles.active=nflow.db.postgresql", "-jar", "/app/target/tm-0.0.1-RELEASE.jar"]
|
||||||
|
|||||||
35
nixpacks.toml
Normal file
35
nixpacks.toml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# Nixpacks configuration for velocity-backend-spring-boot
|
||||||
|
# Replicates the behavior of the existing Dockerfile for Dokploy deployment
|
||||||
|
|
||||||
|
[phases]
|
||||||
|
[phases.setup]
|
||||||
|
nixPkgs = [
|
||||||
|
"fontconfig",
|
||||||
|
"dejavu_fonts",
|
||||||
|
"maven",
|
||||||
|
]
|
||||||
|
|
||||||
|
[phases.build]
|
||||||
|
# Override default Maven command to use the production profile
|
||||||
|
# Equivalent to: RUN mvn clean compile -P production package
|
||||||
|
cmds = [
|
||||||
|
"mvn clean compile -P production package"
|
||||||
|
]
|
||||||
|
|
||||||
|
[start]
|
||||||
|
# Equivalent to: CMD ["java", "-Djava.awt.headless=true", "-Dspring.profiles.active=nflow.db.postgresql", "-jar", "/app/target/tm-0.0.1-RELEASE.jar"]
|
||||||
|
cmd = "java -Djava.awt.headless=true -Dspring.profiles.active=nflow.db.postgresql -jar /app/target/tm-0.0.1-RELEASE.jar"
|
||||||
|
|
||||||
|
[variables]
|
||||||
|
# Use Java 17 as defined in pom.xml properties
|
||||||
|
JAVA_VERSION = "17"
|
||||||
|
|
||||||
|
[env]
|
||||||
|
# List of environment variables the application expects
|
||||||
|
# These can be overridden in Dokploy's environment settings
|
||||||
|
SPRING_PROFILES_ACTIVE = "nflow.db.postgresql"
|
||||||
|
JAVA_OPTS = "-Djava.awt.headless=true"
|
||||||
|
|
||||||
|
[deploy]
|
||||||
|
# Ports exposed by the application (from compose.yml)
|
||||||
|
ports = [8058, 6950]
|
||||||
@@ -10,7 +10,7 @@ server.servlet.context-path=/api
|
|||||||
spring.jpa.hibernate.ddl-auto=validate
|
spring.jpa.hibernate.ddl-auto=validate
|
||||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
|
|
||||||
spring.datasource.url=jdbc:postgresql://62.171.179.108:5432/qpay?useLegacyDatetimeCode=false
|
spring.datasource.url=jdbc:postgresql://velocity-db-f82e97:5432/pay?useLegacyDatetimeCode=false
|
||||||
spring.datasource.username=postgres
|
spring.datasource.username=postgres
|
||||||
spring.datasource.password=zdDZMzq6F4B4L1IUla
|
spring.datasource.password=zdDZMzq6F4B4L1IUla
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ jwt.secret=your-super-secret-jwt-key-here-make-it-very-long-and-secure-in-produc
|
|||||||
jwt.expiration=7776000000
|
jwt.expiration=7776000000
|
||||||
|
|
||||||
logging.level.root=WARN
|
logging.level.root=WARN
|
||||||
spring.datasource.nflow.url=jdbc:postgresql://62.171.179.108:5432/qpay-nflow
|
spring.datasource.nflow.url=jdbc:postgresql://velocity-db-f82e97:5432/pay-nflow
|
||||||
spring.datasource.nflow.username=postgres
|
spring.datasource.nflow.username=postgres
|
||||||
spring.datasource.nflow.password=zdDZMzq6F4B4L1IUla
|
spring.datasource.nflow.password=zdDZMzq6F4B4L1IUla
|
||||||
spring.main.allow-bean-definition-overriding=true
|
spring.main.allow-bean-definition-overriding=true
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
changeLogFile=src/main/resources/liquibase-diff-changeLog.xml
|
changeLogFile=src/main/resources/liquibase-diff-changeLog.xml
|
||||||
url=jdbc:postgresql://62.171.179.108:5432/qpay?serverTimezone=Africa/Harare&useLegacyDatetimeCode=false
|
url=jdbc:postgresql://velocity-db-f82e97:5432/pay?serverTimezone=Africa/Harare&useLegacyDatetimeCode=false
|
||||||
username=postgres
|
username=postgres
|
||||||
password=zdDZMzq6F4B4L1IUla
|
password=zdDZMzq6F4B4L1IUla
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user