Compare commits

...

5 Commits

Author SHA1 Message Date
aad925bc54 reverting back to dockerfile build 2026-07-12 23:15:57 +02:00
5974f86e29 reverting back to dockerfile build 2026-07-12 23:15:24 +02:00
a53744d949 added nixpacks configs 2026-07-12 23:03:59 +02:00
0d2b5b3c22 added nixpacks configs 2026-07-12 22:57:41 +02:00
5726c65e15 dokploy build configs 2026-07-12 22:39:56 +02:00
4 changed files with 43 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM 144.91.121.112:8082/java-17
FROM vkhoza/java-17
RUN mkdir /app
COPY . /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
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"]

35
nixpacks.toml Normal file
View 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]

View File

@@ -10,7 +10,7 @@ server.servlet.context-path=/api
spring.jpa.hibernate.ddl-auto=validate
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.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
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.password=zdDZMzq6F4B4L1IUla
spring.main.allow-bean-definition-overriding=true

View File

@@ -1,5 +1,5 @@
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
password=zdDZMzq6F4B4L1IUla