{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1260679b-82c9-46d3-92b9-e2cb85fac6dc",
    "slug": "adventurelog-1",
    "name": "AdventureLog",
    "description": "Self-hostable travel tracker and trip planner",
    "url": "https://railway.com/deploy/adventurelog-1",
    "upstream": {
      "image": "ghcr.io/seanmorley15/adventurelog-frontend:v0.13.0"
    }
  },
  "services": [
    {
      "name": "Server",
      "source": {
        "image": "ghcr.io/seanmorley15/adventurelog-backend:v0.13.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/code/media/",
      "http": false
    },
    {
      "name": "Db",
      "source": {
        "image": "ghcr.io/baosystems/postgis:15-3.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data/",
      "http": false
    },
    {
      "name": "AdventureLog",
      "source": {
        "image": "ghcr.io/seanmorley15/adventurelog-frontend:v0.13.0"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Server",
      "description": "Specifies the network port that the application process binds to and listens on for incoming traffic inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "DEBUG",
      "service": "Server",
      "description": "Disables Django's debug mode for production safety, hiding detailed error tracebacks and sensitive system information from end users.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "DOMAIN",
      "service": "Server",
      "description": "The primary public hostname dynamically assigned by Railway, typically used by Django for ALLOWED_HOSTS configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PGHOST",
      "service": "Server",
      "description": "The private network hostname of the PostgreSQL database service (\"Db\") within the Railway project for internal communication.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGUSER",
      "service": "Server",
      "description": "The username required to authenticate and log in to the PostgreSQL database.",
      "secret": false,
      "strategy": "default",
      "default": "adventure"
    },
    {
      "key": "PGDATABASE",
      "service": "Server",
      "description": "The name of the specific PostgreSQL database instance the application connects to and manages.",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "PGPASSWORD",
      "service": "Server",
      "description": "The password used to authenticate the database user (PGUSER) against the PostgreSQL server.",
      "secret": true,
      "strategy": "default",
      "default": "adventure"
    },
    {
      "key": "PUBLIC_URL",
      "service": "Server",
      "description": "The full public HTTPS URL where this server app is accessible from the internet.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SECRET_KEY",
      "service": "Server",
      "description": "Cryptographic key used by Django for signing sessions, cookies, and tokens. (Should be replaced with a strong secret in production).",
      "secret": true,
      "strategy": "default",
      "default": "adventure"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Server",
      "description": "The public HTTPS URL of the frontend client service (\"AdventureLog\"), used by the backend to formulate redirect links or handle cross-origin requests.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DJANGO_ADMIN_EMAIL",
      "service": "Server",
      "description": "The email address assigned to the default superuser account created for the Django Admin interface.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "CSRF_TRUSTED_ORIGINS",
      "service": "Server",
      "description": "Authorizes unsafe requests (e.g., POST/PUT) originating from the frontend domain to pass Django's Cross-Site Request Forgery security checks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DJANGO_ADMIN_PASSWORD",
      "service": "Server",
      "description": "Auto-generates a secure, random 32-character password for the default Django superuser account via Railway's template variables.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DJANGO_ADMIN_USERNAME",
      "service": "Server",
      "description": "Auto-generates a secure, random 32-character username for the default Django superuser account to prevent credential guessing.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "Db",
      "description": "Specifies the exact directory inside the container where PostgreSQL stores all database files and persistent data.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Db",
      "description": "Sets the default database name created automatically when the PostgreSQL database container initializes for the first time.",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Db",
      "description": "Sets the default superuser username created automatically during the initial PostgreSQL database setup.",
      "secret": false,
      "strategy": "default",
      "default": "adventure"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Db",
      "description": "Sets the password for the default PostgreSQL superuser (POSTGRES_USER) created at initialization.",
      "secret": true,
      "strategy": "default",
      "default": "adventure"
    },
    {
      "key": "ORIGIN",
      "service": "AdventureLog",
      "description": "Public-facing HTTPS URL resolved dynamically by Railway. Used for CORS settings, OAuth callbacks, and redirect generation.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BODY_SIZE_LIMIT",
      "service": "AdventureLog",
      "description": "Disables payload size restrictions for incoming HTTP requests (e.g., large file uploads, large JSON payloads) to avoid 413 Payload Too Large errors.",
      "secret": false,
      "strategy": "default",
      "default": "Infinity"
    },
    {
      "key": "PUBLIC_SERVER_URL",
      "service": "AdventureLog",
      "description": "Internal network endpoint for private service-to-service communication on port 8000 within the Railway project (bypasses public internet).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "adventurelog-1"
      }
    },
    "cli": "railway deploy --template adventurelog-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1260679b-82c9-46d3-92b9-e2cb85fac6dc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "025ba5b9-a7af-4053-9d37-b7135f875df8": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/adventurelog.svg",
                  "name": "Server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/seanmorley15/adventurelog-backend:v0.13.0"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Specifies the network port that the application process binds to and listens on for incoming traffic inside the container.",
                      "defaultValue": "8000"
                    },
                    "DEBUG": {
                      "isOptional": false,
                      "description": "Disables Django's debug mode for production safety, hiding detailed error tracebacks and sensitive system information from end users.",
                      "defaultValue": "False"
                    },
                    "DOMAIN": {
                      "description": "The primary public hostname dynamically assigned by Railway, typically used by Django for ALLOWED_HOSTS configuration.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "The private network hostname of the PostgreSQL database service (\"Db\") within the Railway project for internal communication.",
                      "defaultValue": "${{Db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "The username required to authenticate and log in to the PostgreSQL database.",
                      "defaultValue": "adventure"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "The name of the specific PostgreSQL database instance the application connects to and manages.",
                      "defaultValue": "database"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "The password used to authenticate the database user (PGUSER) against the PostgreSQL server.",
                      "defaultValue": "adventure"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "The full public HTTPS URL where this server app is accessible from the internet.",
                      "defaultValue": "https://${{Server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Cryptographic key used by Django for signing sessions, cookies, and tokens. (Should be replaced with a strong secret in production).",
                      "defaultValue": "adventure"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "The public HTTPS URL of the frontend client service (\"AdventureLog\"), used by the backend to formulate redirect links or handle cross-origin requests.",
                      "defaultValue": "https://${{AdventureLog.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DJANGO_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "The email address assigned to the default superuser account created for the Django Admin interface.",
                      "defaultValue": "admin@example.com"
                    },
                    "CSRF_TRUSTED_ORIGINS": {
                      "isOptional": false,
                      "description": "Authorizes unsafe requests (e.g., POST/PUT) originating from the frontend domain to pass Django's Cross-Site Request Forgery security checks.",
                      "defaultValue": "https://${{AdventureLog.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DJANGO_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generates a secure, random 32-character password for the default Django superuser account via Railway's template variables.",
                      "defaultValue": "{{DJANGO_ADMIN_PASSWORD}}"
                    },
                    "DJANGO_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Auto-generates a secure, random 32-character username for the default Django superuser account to prevent credential guessing.",
                      "defaultValue": "{{DJANGO_ADMIN_USERNAME}}"
                    }
                  },
                  "volumeMounts": {
                    "025ba5b9-a7af-4053-9d37-b7135f875df8": {
                      "mountPath": "/code/media/"
                    }
                  }
                },
                "33661ef2-f7d1-4dfc-bc5b-1411d80f787d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresus.svg",
                  "name": "Db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/baosystems/postgis:15-3.5"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Specifies the exact directory inside the container where PostgreSQL stores all database files and persistent data.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Sets the default database name created automatically when the PostgreSQL database container initializes for the first time.",
                      "defaultValue": "database"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Sets the default superuser username created automatically during the initial PostgreSQL database setup.",
                      "defaultValue": "adventure"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Sets the password for the default PostgreSQL superuser (POSTGRES_USER) created at initialization.",
                      "defaultValue": "adventure"
                    }
                  },
                  "volumeMounts": {
                    "33661ef2-f7d1-4dfc-bc5b-1411d80f787d": {
                      "mountPath": "/var/lib/postgresql/data/"
                    }
                  }
                },
                "7b3fcb65-1e00-461b-85a0-48a51affa249": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/adventurelog.svg",
                  "name": "AdventureLog",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/seanmorley15/adventurelog-frontend:v0.13.0"
                  },
                  "variables": {
                    "ORIGIN": {
                      "isOptional": false,
                      "description": "Public-facing HTTPS URL resolved dynamically by Railway. Used for CORS settings, OAuth callbacks, and redirect generation.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BODY_SIZE_LIMIT": {
                      "isOptional": false,
                      "description": "Disables payload size restrictions for incoming HTTP requests (e.g., large file uploads, large JSON payloads) to avoid 413 Payload Too Large errors.",
                      "defaultValue": "Infinity"
                    },
                    "PUBLIC_SERVER_URL": {
                      "isOptional": false,
                      "description": "Internal network endpoint for private service-to-service communication on port 8000 within the Railway project (bypasses public internet).",
                      "defaultValue": "http://${{Server.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-25T16:14:54.488Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-25T13:27:46.372Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ee28ce3369f9473d939b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 82,
    "typical_build_seconds": 0,
    "typical_start_seconds": 33,
    "slowest_service": "AdventureLog"
  }
}
