{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3f4ee809-991b-4325-96b0-87ec1414c6fc",
    "slug": "invoice-ninja-5",
    "name": "Invoice Ninja 5 | Invoicing with PDFs, Queue and Nightly Backups",
    "description": "Invoices, quotes and payments with working PDFs, queue and nightly backups",
    "url": "https://railway.com/deploy/invoice-ninja-5",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/invoiceninja-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Invoice Ninja",
      "source": {
        "repo": "https://github.com/nomideusz/invoiceninja-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html/storage",
      "http": true
    },
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:11.8.9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Invoice Ninja",
      "description": "Port nginx listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "APP_KEY",
      "service": "Invoice Ninja",
      "description": "Encrypts stored gateway, email and bank credentials. Never change it after the first boot",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_URL",
      "service": "Invoice Ninja",
      "description": "Public URL used in emails, PDFs and the client portal. Change it when you add a custom domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "Invoice Ninja",
      "description": "MariaDB host - private network only, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "Invoice Ninja",
      "description": "MariaDB port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "S3_BUCKET",
      "service": "Invoice Ninja",
      "description": "Backup bucket name. Empty = no nightly backups",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "Invoice Ninja",
      "description": "Backup bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_DATABASE",
      "service": "Invoice Ninja",
      "description": "Database name - wired to the bundled MariaDB, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "Invoice Ninja",
      "description": "Database password - wired to the bundled MariaDB, leave as is",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "Invoice Ninja",
      "description": "Database user - wired to the bundled MariaDB, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IN_PASSWORD",
      "service": "Invoice Ninja",
      "description": "Password of the first admin, used on first boot only - change it in Settings > User Details afterwards",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MAIL_MAILER",
      "service": "Invoice Ninja",
      "description": "Mailer for system emails. 'log' writes them to the logs; see the template README for SMTP (Pro plan) or per-company API providers",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "Invoice Ninja",
      "description": "Nightly backups go to the bundled bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IN_USER_EMAIL",
      "service": "Invoice Ninja",
      "description": "Your email address: the login of the first admin (created on first boot) and where password resets go",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "Invoice Ninja",
      "description": "Backup bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "Invoice Ninja",
      "description": "Backup bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARIADB_USER",
      "service": "MariaDB",
      "description": "Database user for Invoice Ninja",
      "secret": false,
      "strategy": "default",
      "default": "ninja"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "MariaDB",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "ninja"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "MariaDB",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "MariaDB",
      "description": "Auto-generated root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "MariaDB",
      "description": "Time for MariaDB to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "invoice-ninja-5"
      }
    },
    "cli": "railway deploy --template invoice-ninja-5",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3f4ee809-991b-4325-96b0-87ec1414c6fc",
            "serializedConfig": {
              "buckets": {
                "63fc0d4d-9e77-4d08-b3da-f3785e915264": {
                  "name": "Backups"
                }
              },
              "services": {
                "810f34d8-26bb-4896-995b-bc0260337d8f": {
                  "icon": "https://raw.githubusercontent.com/invoiceninja/invoiceninja/v5.13.43/public/images/logo.png",
                  "name": "Invoice Ninja",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/invoiceninja-railway",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port nginx listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "APP_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored gateway, email and bank credentials. Never change it after the first boot",
                      "defaultValue": "{{APP_KEY}}"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public URL used in emails, PDFs and the client portal. Change it when you add a custom domain",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "MariaDB host - private network only, leave as is",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "MariaDB port",
                      "defaultValue": "3306"
                    },
                    "S3_BUCKET": {
                      "isOptional": true,
                      "description": "Backup bucket name. Empty = no nightly backups",
                      "defaultValue": "${{Backups.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": true,
                      "description": "Backup bucket region",
                      "defaultValue": "${{Backups.REGION}}"
                    },
                    "DB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_DATABASE}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Database user - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_USER}}"
                    },
                    "IN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password of the first admin, used on first boot only - change it in Settings > User Details afterwards",
                      "defaultValue": "{{IN_PASSWORD}}"
                    },
                    "MAIL_MAILER": {
                      "isOptional": true,
                      "description": "Mailer for system emails. 'log' writes them to the logs; see the template README for SMTP (Pro plan) or per-company API providers",
                      "defaultValue": "log"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "Nightly backups go to the bundled bucket - leave as is",
                      "defaultValue": "${{Backups.ENDPOINT}}"
                    },
                    "IN_USER_EMAIL": {
                      "isOptional": false,
                      "description": "Your email address: the login of the first admin (created on first boot) and where password resets go",
                      "defaultValue": "{{IN_USER_EMAIL}}"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Backup bucket credentials",
                      "defaultValue": "${{Backups.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Backup bucket credentials",
                      "defaultValue": "${{Backups.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "810f34d8-26bb-4896-995b-bc0260337d8f": {
                      "mountPath": "/var/www/html/storage"
                    }
                  }
                },
                "bbb418bd-89cf-45f5-8525-8098de664b91": {
                  "icon": "https://raw.githubusercontent.com/docker-library/docs/master/mariadb/logo.png",
                  "name": "MariaDB",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mariadbd --datadir=/var/lib/mysql/data",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:11.8.9"
                  },
                  "variables": {
                    "MARIADB_USER": {
                      "isOptional": false,
                      "description": "Database user for Invoice Ninja",
                      "defaultValue": "ninja"
                    },
                    "MARIADB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "ninja"
                    },
                    "MARIADB_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated root password",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for MariaDB to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "bbb418bd-89cf-45f5-8525-8098de664b91": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Invoice Ninja",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-25T04:14:47.205Z",
  "generator_version": "0.1.0"
}
