Hostinger Managed apps: How to manage environment variables and docker-compose.yaml

Edit your Managed app’s variables and docker-compose.yaml, then apply changes with one restart.

Updated 5 days ago

Hostinger Managed apps environment variables and the docker-compose.yaml file are both edited on your app’s Environment page, for OpenClaw, Hermes, n8n, and Paperclip. Add or change variables on the Environment variables tab, edit the file on the YAML tab, then click Save and deploy to apply all changes with one app restart. If your app doesn’t start after a deploy, View output shows why.

Before you start

  • The Environment page described here is available for apps in the Managed apps section of the Hostinger dashboard. Apps listed under AI agents run on the previous setup.
  • For an overview of plans and app setup, see Hostinger Managed apps: What it is and how to get started.
  • Editing or deleting a default environment variable, or making a mistake in docker-compose.yaml, can stop your app from starting.

How to manage environment variables in Hostinger Managed apps

Environment variables store the keys, passwords, and settings your app needs to run. Hostinger creates the default variables during setup, such as AI_ROUTER_API_KEY, TZ (time zone), and the app’s public host.

  1. In the Hostinger dashboard, go to Managed apps and click Manage next to your app.
  2. Select Environment in the left menu. The Environment variables tab opens.
  3. Make your changes:
    • To add a variable, click Add variable and enter its name and value.
    • To change a variable, click Edit next to it.
    • To remove a variable, click the trash icon next to it.
  4. Click Save and deploy. Your app restarts to apply the changes.

Values are hidden by default. Use the eye icon to show one value, or click Show all values. Use the copy icon to copy a value, and Search variable to find a variable by name.

How to edit docker-compose.yaml in Hostinger Managed apps

Open your app’s Environment page, switch to the YAML tab, edit the file, and click Save and deploy.

  1. In the Hostinger dashboard, go to Managed apps and click Manage next to your app.
  2. Select Environment in the left menu and open the YAML tab.
  3. Your app’s docker-compose.yaml file opens in an editor with line numbers. An Environment variables panel below it lists your variables with their values hidden. Click Show all values in the panel to see them.
  4. Edit the file. The editor flags YAML and docker-compose mistakes inside the file.
  5. Click Save and deploy. Your app restarts to apply the changes.

How to save and deploy changes in Hostinger Managed apps

Changes on the Environment variables and YAML tabs stay as a draft until you click Save and deploy, which applies all of them together with one app restart. The Unsaved changes counter at the top of the card shows how many changes are in the draft.

  • To apply the draft, click Save and deploy.
  • To discard the draft, click Cancel.

If Hostinger Managed apps refuses the file, the reason appears below the editor and your edit is kept. Fix the issue, then click Save and deploy again.

How to fix a failed deploy in Hostinger Managed apps

When your app doesn’t start after a deploy, the Environment page shows a message that your last deploy failed, with a View output button. Two common causes are an image that can’t be found and an app that keeps restarting.

  1. Click View output.

    The Deploy output window shows the last log lines of the deploy.
  2. Close the window and fix docker-compose.yaml in the YAML tab.
  3. Click Save and deploy.

NOTES

  • If you set a specific image version in docker-compose.yaml, Hostinger Managed apps keeps that version when your app is updated.

Your Hostinger Managed app now runs with your updated environment variables and docker-compose.yaml. Check the Environment page after each deploy to confirm the app started, and use View output if it didn’t.