{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0e5927c5-cd63-4580-99e3-2e0f03dd453d",
    "slug": "dolibarr-erp-crm-1",
    "name": "Dolibarr ERP-CRM",
    "description": "Open Source ERP & CRM for Business",
    "url": "https://railway.com/deploy/dolibarr-erp-crm-1",
    "upstream": {
      "image": "dolibarr/dolibarr"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "tcp_ports": [
        3306
      ],
      "http": false
    },
    {
      "name": "dolibarr/dolibarr",
      "source": {
        "image": "dolibarr/dolibarr"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/documents",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "MySQL port.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "MySQL user, used for the Data panel.",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Default database, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Root password, used for Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database to be created on image startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL DB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password for MySQL DB.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DOLI_CRON",
      "service": "dolibarr/dolibarr",
      "description": "Enable cron service",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "WWW_USER_ID",
      "service": "dolibarr/dolibarr",
      "description": "\tID of user www-data. ID will not changed if leave empty. During a development, it is very practical to put the same ID as the host user.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "DOLI_DB_HOST",
      "service": "dolibarr/dolibarr",
      "description": "Host name of the MariaDB/MySQL server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOLI_DB_NAME",
      "service": "dolibarr/dolibarr",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOLI_DB_USER",
      "service": "dolibarr/dolibarr",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WWW_GROUP_ID",
      "service": "dolibarr/dolibarr",
      "description": "\tID of group www-data. ID will not changed if leave empty.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "DOLI_CRON_KEY",
      "service": "dolibarr/dolibarr",
      "description": "Security key to launch cron jobs",
      "secret": true,
      "strategy": "default",
      "default": "mycronsecurekey"
    },
    {
      "key": "DOLI_URL_ROOT",
      "service": "dolibarr/dolibarr",
      "description": "Url root of the Dolibarr installation",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOLI_INIT_DEMO",
      "service": "dolibarr/dolibarr",
      "description": "The installation will also load demo data during docker first boot",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DOLI_ADMIN_LOGIN",
      "service": "dolibarr/dolibarr",
      "description": "Admin's login created on the first boot",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DOLI_DB_PASSWORD",
      "service": "dolibarr/dolibarr",
      "description": "Database user's password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOLI_COMPANY_NAME",
      "service": "dolibarr/dolibarr",
      "description": "\tSet the company name of Dolibarr at container init",
      "secret": false,
      "strategy": "default",
      "default": "MyBigCompany"
    },
    {
      "key": "DOLI_ADMIN_PASSWORD",
      "service": "dolibarr/dolibarr",
      "description": "Admin's initial password created on the first boot",
      "secret": true,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dolibarr-erp-crm-1"
      }
    },
    "cli": "railway deploy --template dolibarr-erp-crm-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0e5927c5-cd63-4580-99e3-2e0f03dd453d",
            "serializedConfig": {
              "services": {
                "439f8743-0ba5-4ed8-b94f-21a66dc88f7e": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "requiredMountPath": "/var/lib/mysql"
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "MySQL port.",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "MySQL user, used for the Data panel.",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "URL to connect to MySQL.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Default database, used for Data panel.",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Root password, used for Data panel.",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database to be created on image startup.",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "description": "URL to connect to MySQL DB, used for Data panel.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password for MySQL DB.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "3306": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "439f8743-0ba5-4ed8-b94f-21a66dc88f7e": {
                      "mountPath": "/var/lib/mysql"
                    }
                  },
                  "haTemplateCode": "mysql-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "MySQL Replicas",
                      "options": [
                        2,
                        4,
                        6,
                        8
                      ],
                      "nodeLabel": "MySQL",
                      "description": "Requires odd count for quorum",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your MySQL instance to an HA cluster with Group Replication failover and HAProxy routing to the primary.",
                    "supportedImageMajorVersions": [
                      8,
                      9
                    ]
                  }
                },
                "e6b0e080-7015-422b-8fa4-1ba7eec12bfc": {
                  "icon": "https://devicons.railway.app/docker",
                  "name": "dolibarr/dolibarr",
                  "deploy": {
                    "startCommand": "bash -c \"mkdir -p /var/www/documents; chown -R www-data:www-data /var/www/documents; chmod -R 775 /var/www/documents; chown -R www-data:www-data /var/www/html/conf; chmod -R 775 /var/www/html/conf; a2dismod mpm_event mpm_worker; a2enmod mpm_prefork; apache2-foreground\"",
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "dolibarr/dolibarr"
                  },
                  "variables": {
                    "DOLI_CRON": {
                      "isOptional": false,
                      "description": "Enable cron service",
                      "defaultValue": "0"
                    },
                    "WWW_USER_ID": {
                      "isOptional": false,
                      "description": "\tID of user www-data. ID will not changed if leave empty. During a development, it is very practical to put the same ID as the host user.",
                      "defaultValue": "1000"
                    },
                    "DOLI_DB_HOST": {
                      "isOptional": false,
                      "description": "Host name of the MariaDB/MySQL server",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "DOLI_DB_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "DOLI_DB_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "WWW_GROUP_ID": {
                      "isOptional": false,
                      "description": "\tID of group www-data. ID will not changed if leave empty.",
                      "defaultValue": "1000"
                    },
                    "DOLI_CRON_KEY": {
                      "isOptional": false,
                      "description": "Security key to launch cron jobs",
                      "defaultValue": "mycronsecurekey"
                    },
                    "DOLI_URL_ROOT": {
                      "isOptional": false,
                      "description": "Url root of the Dolibarr installation",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOLI_INIT_DEMO": {
                      "isOptional": false,
                      "description": "The installation will also load demo data during docker first boot",
                      "defaultValue": "0"
                    },
                    "DOLI_ADMIN_LOGIN": {
                      "isOptional": false,
                      "description": "Admin's login created on the first boot",
                      "defaultValue": "admin"
                    },
                    "DOLI_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database user's password",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "DOLI_COMPANY_NAME": {
                      "isOptional": false,
                      "description": "\tSet the company name of Dolibarr at container init",
                      "defaultValue": "MyBigCompany"
                    },
                    "DOLI_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin's initial password created on the first boot",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "e6b0e080-7015-422b-8fa4-1ba7eec12bfc": {
                      "mountPath": "/var/www/documents"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T11:54:27.954Z",
  "generator_version": "0.1.0"
}
