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

# Docker Compose

> The reference self-hosting stack.

[`apowerb-hosting`](https://github.com/apowerb/apowerb-hosting) holds no application
code. It assembles [`apowerb/apowerb`](https://github.com/apowerb/apowerb) (the API)
and [`apowerb/apowerb-ui`](https://github.com/apowerb/apowerb-ui) (the interface) and
gives them a database.

## Services

| Service      | Role              | Default port  |
| ------------ | ----------------- | ------------- |
| `postgres`   | Database          | internal only |
| `apowerb`    | FastAPI API       | 8000          |
| `apowerb-ui` | Next.js interface | 3000          |

See the [Quickstart](/quickstart) for the commands.

## Images build from source

The compose file builds the API and interface from the sibling clones. No system
packages are installed in the images: `psycopg2-binary`, `asyncpg` and `cryptography`
arrive as prebuilt wheels, and the health probes are written in Python and Node rather
than shelling out to `curl`. The build therefore depends on no Debian mirror.

Once `apowerb/*` images are published to a registry, the `build:` blocks become
`image:` blocks and the source clones are no longer required.


## Related topics

- [Quickstart](/quickstart.md)
- [Overview](/ecosystem/overview.md)
- [Database](/self-hosting/database.md)
- [Execute Artifact Endpoint](/api-reference/artifacts/execute-artifact-endpoint.md)
- [Orchestration](/concepts/orchestration.md)
