{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f5b7ada5-2419-489f-9121-0318415d9420",
    "slug": "odoo-20-business-apps-suite",
    "name": "Odoo 20 Business Apps Suite",
    "description": "CRM, sales, inventory, invoicing and website in one. Odoo with Postgres.",
    "url": "https://railway.com/deploy/odoo-20-business-apps-suite",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/odoo-railway"
    }
  },
  "services": [
    {
      "name": "Odoo",
      "source": {
        "repo": "https://github.com/baranberkay96/odoo-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/odoo",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Odoo",
      "description": "Port nginx listens on (public domain target). Odoo itself listens on 127.0.0.1:8069/8072.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PGHOST",
      "service": "Odoo",
      "description": "Postgres host (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Odoo",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Odoo",
      "description": "Database user. Must not be 'postgres' (Odoo refuses it).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PORT",
      "service": "Odoo",
      "description": "SMTP port.",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "PGPASSWORD",
      "service": "Odoo",
      "description": "Database password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ODOO_DB_NAME",
      "service": "Odoo",
      "description": "Database Odoo serves (dbfilter and db_name are pinned to it).",
      "secret": false,
      "strategy": "default",
      "default": "odoo"
    },
    {
      "key": "ODOO_LIST_DB",
      "service": "Odoo",
      "description": "Database manager and selector. Keep False in production; set True temporarily to back up or restore from the UI.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "ODOO_WORKERS",
      "service": "Odoo",
      "description": "HTTP worker processes (prefork). Rule of thumb: 2 x vCPU + 1. Must be > 0 for /websocket (live chat, notifications).",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "SMTP_STARTTLS",
      "service": "Odoo",
      "description": "Use STARTTLS for SMTP.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "ODOO_DB_MAXCONN",
      "service": "Odoo",
      "description": "Max Postgres connections per Odoo process. Keep (workers + cron + 1) x this below Postgres max_connections (100).",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "ODOO_ADMIN_LOGIN",
      "service": "Odoo",
      "description": "Login of the administrator user set when the database is created. Use an e-mail address if you prefer.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ODOO_INIT_MODULES",
      "service": "Odoo",
      "description": "Modules installed at database creation, comma-separated (e.g. base,crm,sale_management,stock). Install the rest from the Apps menu.",
      "secret": false,
      "strategy": "default",
      "default": "base"
    },
    {
      "key": "ODOO_ADMIN_PASSWORD",
      "service": "Odoo",
      "description": "Password of the administrator user, set once when the database is created. Change it later in Odoo.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ODOO_AUTO_CREATE_DB",
      "service": "Odoo",
      "description": "Create the database on first boot (no demo data). Set false to create it yourself in /web/database/manager.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ODOO_LIMIT_TIME_CPU",
      "service": "Odoo",
      "description": "Max CPU seconds per request (imports and reports need more than Odoo's 60 s default).",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "ODOO_LIMIT_TIME_REAL",
      "service": "Odoo",
      "description": "Max wall-clock seconds per request.",
      "secret": false,
      "strategy": "default",
      "default": "1200"
    },
    {
      "key": "ODOO_MASTER_PASSWORD",
      "service": "Odoo",
      "description": "Master password (admin_passwd) protecting the database manager: create, duplicate, backup, restore, drop.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ODOO_MAX_CRON_THREADS",
      "service": "Odoo",
      "description": "Scheduled-action workers.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "ODOO_LIMIT_MEMORY_HARD",
      "service": "Odoo",
      "description": "Kill a worker immediately above this many bytes (1 GiB).",
      "secret": false,
      "strategy": "default",
      "default": "1073741824"
    },
    {
      "key": "ODOO_LIMIT_MEMORY_SOFT",
      "service": "Odoo",
      "description": "Recycle a worker after a request once it uses more than this many bytes (768 MiB).",
      "secret": false,
      "strategy": "default",
      "default": "805306368"
    },
    {
      "key": "NGINX_CLIENT_MAX_BODY_SIZE",
      "service": "Odoo",
      "description": "Max upload size (attachments, imports, database restores).",
      "secret": false,
      "strategy": "default",
      "default": "256m"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Odoo",
      "description": "Let running requests finish on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot. 'odoo' instead of the Railway default 'postgres', which Odoo refuses to use.",
      "secret": false,
      "strategy": "default",
      "default": "odoo"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "odoo-20-business-apps-suite"
      }
    },
    "cli": "railway deploy --template odoo-20-business-apps-suite",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f5b7ada5-2419-489f-9121-0318415d9420",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "25d91f91-4fb8-5e8d-a9c1-37bfb72564f0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/odoo.svg",
                  "name": "Odoo",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/web/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/odoo-railway",
                    "branch": "main",
                    "rootDirectory": "/services/odoo"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port nginx listens on (public domain target). Odoo itself listens on 127.0.0.1:8069/8072.",
                      "defaultValue": "8080"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Postgres host (private network).",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Database user. Must not be 'postgres' (Odoo refuses it).",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "SMTP_HOST": {
                      "isOptional": true,
                      "description": "Outgoing SMTP server. Optional: you can also configure mail servers in Settings > Technical > Outgoing Mail Servers.",
                      "defaultValue": ""
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port.",
                      "defaultValue": "587"
                    },
                    "SMTP_USER": {
                      "isOptional": true,
                      "description": "SMTP username. Optional.",
                      "defaultValue": ""
                    },
                    "EMAIL_FROM": {
                      "isOptional": true,
                      "description": "Default sender address, e.g. odoo@yourcompany.com. Optional.",
                      "defaultValue": ""
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Database password.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "ODOO_DB_NAME": {
                      "isOptional": true,
                      "description": "Database Odoo serves (dbfilter and db_name are pinned to it).",
                      "defaultValue": "odoo"
                    },
                    "ODOO_LIST_DB": {
                      "isOptional": true,
                      "description": "Database manager and selector. Keep False in production; set True temporarily to back up or restore from the UI.",
                      "defaultValue": "False"
                    },
                    "ODOO_WORKERS": {
                      "isOptional": true,
                      "description": "HTTP worker processes (prefork). Rule of thumb: 2 x vCPU + 1. Must be > 0 for /websocket (live chat, notifications).",
                      "defaultValue": "2"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password. Optional.",
                      "defaultValue": ""
                    },
                    "SMTP_STARTTLS": {
                      "isOptional": true,
                      "description": "Use STARTTLS for SMTP.",
                      "defaultValue": "True"
                    },
                    "ODOO_INIT_LANG": {
                      "isOptional": true,
                      "description": "Extra language loaded at database creation, e.g. de_DE or tr_TR. Optional.",
                      "defaultValue": ""
                    },
                    "ODOO_DB_MAXCONN": {
                      "isOptional": true,
                      "description": "Max Postgres connections per Odoo process. Keep (workers + cron + 1) x this below Postgres max_connections (100).",
                      "defaultValue": "16"
                    },
                    "ODOO_ADMIN_LOGIN": {
                      "isOptional": true,
                      "description": "Login of the administrator user set when the database is created. Use an e-mail address if you prefer.",
                      "defaultValue": "admin"
                    },
                    "ODOO_INIT_MODULES": {
                      "isOptional": true,
                      "description": "Modules installed at database creation, comma-separated (e.g. base,crm,sale_management,stock). Install the rest from the Apps menu.",
                      "defaultValue": "base"
                    },
                    "ODOO_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of the administrator user, set once when the database is created. Change it later in Odoo.",
                      "defaultValue": "{{ODOO_ADMIN_PASSWORD}}"
                    },
                    "ODOO_AUTO_CREATE_DB": {
                      "isOptional": true,
                      "description": "Create the database on first boot (no demo data). Set false to create it yourself in /web/database/manager.",
                      "defaultValue": "true"
                    },
                    "ODOO_LIMIT_TIME_CPU": {
                      "isOptional": true,
                      "description": "Max CPU seconds per request (imports and reports need more than Odoo's 60 s default).",
                      "defaultValue": "600"
                    },
                    "ODOO_UPDATE_MODULES": {
                      "isOptional": true,
                      "description": "Modules to update on the next start (e.g. all after a patch upgrade). Clear it again afterwards. Optional.",
                      "defaultValue": ""
                    },
                    "ODOO_LIMIT_TIME_REAL": {
                      "isOptional": true,
                      "description": "Max wall-clock seconds per request.",
                      "defaultValue": "1200"
                    },
                    "ODOO_MASTER_PASSWORD": {
                      "isOptional": true,
                      "description": "Master password (admin_passwd) protecting the database manager: create, duplicate, backup, restore, drop.",
                      "defaultValue": "{{ODOO_MASTER_PASSWORD}}"
                    },
                    "ODOO_MAX_CRON_THREADS": {
                      "isOptional": true,
                      "description": "Scheduled-action workers.",
                      "defaultValue": "1"
                    },
                    "ODOO_LIMIT_MEMORY_HARD": {
                      "isOptional": true,
                      "description": "Kill a worker immediately above this many bytes (1 GiB).",
                      "defaultValue": "1073741824"
                    },
                    "ODOO_LIMIT_MEMORY_SOFT": {
                      "isOptional": true,
                      "description": "Recycle a worker after a request once it uses more than this many bytes (768 MiB).",
                      "defaultValue": "805306368"
                    },
                    "NGINX_CLIENT_MAX_BODY_SIZE": {
                      "isOptional": true,
                      "description": "Max upload size (attachments, imports, database restores).",
                      "defaultValue": "256m"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Let running requests finish on redeploy.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "f9d03193-1b99-5ff0-90d8-5b44002edee2": {
                      "mountPath": "/var/lib/odoo"
                    }
                  }
                },
                "714e12ad-058f-50b9-bcaf-afa199629d47": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Location where the database will be initialized.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for Data panel.",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for Data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Superuser created on first boot. 'odoo' instead of the Railway default 'postgres', which Odoo refuses to use.",
                      "defaultValue": "odoo"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Password to connect to DB.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to cleanly shut down.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "493e17d3-3db6-5fa2-8782-b177dec5c0e0": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Odoo",
      "method": "GET",
      "path": "/web/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T14:53:04.714Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_69e3c35049244b4f905d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 138,
    "typical_build_seconds": 81,
    "typical_start_seconds": 40,
    "slowest_service": "Odoo"
  }
}
