# Deployment

## ☀ Deployment

## Background

* This deployment architecture is designed to make self-hosting AppFlowy-Cloud as easy as possible.
* Deployment can be done in a single machine which only needs `docker` to be installed.
* [Cloud Deployment Guide](https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/doc/DEPLOYMENT.md)

## Deployment Architecture

![img.png](/files/LThlttlYWKUYWjqvBC8V)

### Routing

* After `docker compose up -d` is ran, AppFlowy-Cloud will be serving in [localhost](http://localhost) at both port 80 and 443
* Host Machine should expose either HTTP(80) or HTTPS(443) port.
* AppFlowy Native Application should then be configured to connect to Host Machine through IP or hostname.
* `/gotrue` → GoTrue Auth Server
* `/api` → AppFlowy-Cloud HTTP
* `/ws` → AppFlowy-Cloud Web Socket
* `/web` → AppFlowy User Admin Frontend
* `/pgadmin` → Postgres database control panel
* `/minio` → Minio Web UI
* `/portainer` → Container Management


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appflowy.io/docs/documentation/appflowy-cloud/deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
