docker-compose.yml at the root of
apowerb-hosting. That file has
no database: create one first.
- In Databases, create a PostgreSQL cluster in the same region as the app, with a database used only by apowerb. A database whose tables were created by another role leaves the server running and unusable.
-
Create an App Platform app from your copy of
apowerb-hosting, type Docker Compose. -
Generate the secrets on your machine:
-
In the app’s variables, set those four plus
DB_HOST(the cluster’s private address: the connection is not encrypted),DB_NAME,DB_USER,DB_PASSWORD,APP_PUBLIC_URL(the app’shttps://address) andDEFAULT_SUPERADMIN_EMAIL. -
Deploy, then check from a clone of the repository:
/api over the
internal network, and the platform serves the first service, the interface,
on its domain.