{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6140e591-ab59-4e95-b74b-4cf96c93d329",
    "slug": "akaunting-railway",
    "name": "Akaunting",
    "description": "Accounting software for invoices, expenses and financial reports",
    "url": "https://railway.com/deploy/akaunting-railway",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/akaunting-railway"
    }
  },
  "services": [
    {
      "name": "akaunting",
      "source": {
        "repo": "https://github.com/gridalpha/akaunting-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "akaunting",
      "description": "Apache listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "APP_URL",
      "service": "akaunting",
      "description": "Public-facing app URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "akaunting",
      "description": "Private MySQL hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "akaunting",
      "description": "MySQL port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "DB_PREFIX",
      "service": "akaunting",
      "description": "Table prefix, fixed across redeploys",
      "secret": false,
      "strategy": "default",
      "default": "akt_"
    },
    {
      "key": "REDIS_URL",
      "service": "akaunting",
      "description": "Cache, session and queue connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_LOCALE",
      "service": "akaunting",
      "description": "Interface language",
      "secret": false,
      "strategy": "default",
      "default": "en-GB"
    },
    {
      "key": "DB_DATABASE",
      "service": "akaunting",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "akaunting",
      "description": "Bootstrap account password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "akaunting",
      "description": "Bootstrap account, swapped for a scoped role",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_TIMEZONE",
      "service": "akaunting",
      "description": "Timezone for dates and reports",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "APP_SCHEDULE_TIME",
      "service": "akaunting",
      "description": "When reminders and recurring documents run",
      "secret": false,
      "strategy": "default",
      "default": "09:00"
    },
    {
      "key": "AKAUNTING_APP_SECRET",
      "service": "akaunting",
      "description": "Seed for encryption key and DB role",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AKAUNTING_ADMIN_EMAIL",
      "service": "akaunting",
      "description": "First administrator's login",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "AKAUNTING_COMPANY_NAME",
      "service": "akaunting",
      "description": "First company name, install-time only",
      "secret": false,
      "strategy": "default",
      "default": "My Company"
    },
    {
      "key": "AKAUNTING_COMPANY_EMAIL",
      "service": "akaunting",
      "description": "First company email, install-time only",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "AKAUNTING_ADMIN_PASSWORD",
      "service": "akaunting",
      "description": "First administrator's password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "akaunting",
      "description": "Lets the queue worker finish on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias for the superuser",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Superuser password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "akaunting-railway"
      }
    },
    "cli": "railway deploy --template akaunting-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6140e591-ab59-4e95-b74b-4cf96c93d329",
            "serializedConfig": {
              "buckets": {
                "28f58a2e-0c68-4907-97dd-95f907c21301": {
                  "name": "akaunting-media"
                }
              },
              "services": {
                "acdeeaf6-080b-41e7-b1fe-c0accef54d3c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/akaunting.svg",
                  "name": "akaunting",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/akaunting-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Apache listening port",
                      "defaultValue": "8080"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public-facing app URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private MySQL hostname",
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "3306"
                    },
                    "DB_PREFIX": {
                      "isOptional": false,
                      "description": "Table prefix, fixed across redeploys",
                      "defaultValue": "akt_"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache, session and queue connection",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "APP_LOCALE": {
                      "isOptional": false,
                      "description": "Interface language",
                      "defaultValue": "en-GB"
                    },
                    "DB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Bootstrap account password",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Bootstrap account, swapped for a scoped role",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "APP_TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone for dates and reports",
                      "defaultValue": "UTC"
                    },
                    "APP_SCHEDULE_TIME": {
                      "isOptional": false,
                      "description": "When reminders and recurring documents run",
                      "defaultValue": "09:00"
                    },
                    "AKAUNTING_APP_SECRET": {
                      "isOptional": false,
                      "description": "Seed for encryption key and DB role",
                      "defaultValue": "{{AKAUNTING_APP_SECRET}}"
                    },
                    "AKAUNTING_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator's login",
                      "defaultValue": "admin@example.com"
                    },
                    "AKAUNTING_COMPANY_NAME": {
                      "isOptional": false,
                      "description": "First company name, install-time only",
                      "defaultValue": "My Company"
                    },
                    "AKAUNTING_COMPANY_EMAIL": {
                      "isOptional": false,
                      "description": "First company email, install-time only",
                      "defaultValue": "admin@example.com"
                    },
                    "AKAUNTING_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator's password",
                      "defaultValue": "{{AKAUNTING_ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Lets the queue worker finish on redeploy",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "acdeeaf6-080b-41e7-b1fe-c0accef54d3c": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c253db7a-2df6-45f7-af91-e8da20ba2bdb": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias for the superuser",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the server",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "c253db7a-2df6-45f7-af91-e8da20ba2bdb": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "dc460720-80b4-4ad3-b7ff-8df93177d768": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "dc460720-80b4-4ad3-b7ff-8df93177d768": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T13:16:54.070Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_1699ebcd6fb94d68858e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 199
  }
}
