From 0d2b5b3c227fa9e7026af5c4b6208bf308cd5858 Mon Sep 17 00:00:00 2001 From: Vusa Date: Sun, 12 Jul 2026 22:57:41 +0200 Subject: [PATCH] added nixpacks configs --- nixpacks.toml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 nixpacks.toml diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..2674349 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,34 @@ +# Nixpacks configuration for velocity-backend-spring-boot +# Replicates the behavior of the existing Dockerfile for Dokploy deployment + +[phases] + [phases.setup] + nixPkgs = [ + "fontconfig", + "dejavu_fonts", + ] + + [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] \ No newline at end of file