> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revolte.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Service Definitions

> Define service types, entry points, and health checks.

Every environment contains one or more services. Revolte uses a **Resource ID (RID)** system to uniquely identify and manage these components across your lifecycle.

## Service types

Revolte supports several core service types out of the box:

* **`WEB_SERVICE`**: Publicly accessible applications (e.g., APIs, Frontends).
* **`DATABASE`**: Managed stateful services (e.g., Postgres, Redis).
* **`WORKER`**: Background processors <span className="soon-pill">Coming Soon</span>.

## RID mapping

The `rid_X` key maps your configuration to the Revolte dashboard.

```yaml revolte.yaml theme={"dark"}
env:
  production:
    services:
      rid_1:
        type: WEB_SERVICE
        name: api-service
        entryPoint: index.js
        properties:
          health: /health
          port: 8080
```

## Quick links

* [Resource Specifications](/yaml/environment-settings/specifications)
* [Variables & Secrets](/yaml/environment-settings/resource-specifications/variables)
* [YAML Overview](/yaml/overview)
