{"id":26063,"date":"2026-11-26T02:28:12","date_gmt":"2026-11-26T02:28:12","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=26063"},"modified":"2026-11-26T02:28:12","modified_gmt":"2026-11-26T02:28:12","slug":"hostinger-managed-apps-how-to-manage-environment-variables-and-docker-compose-yaml","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/hostinger-managed-apps-how-to-manage-environment-variables-and-docker-compose-yaml\/","title":{"rendered":"Hostinger Managed apps: How to manage environment variables and docker-compose.yaml"},"content":{"rendered":"<p>Hostinger Managed apps environment variables and the docker-compose.yaml file are both edited on your app&#8217;s <b>Environment<\/b> page, for OpenClaw, Hermes, n8n, and Paperclip. Add or change variables on the <b>Environment variables<\/b> tab, edit the file on the <b>YAML<\/b> tab, then click <b>Save and deploy<\/b> to apply all changes with one app restart. If your app doesn&#8217;t start after a deploy, <b>View output<\/b> shows why.<\/p>\n<h3><b>Before you start<\/b><\/h3>\n<ul>\n<li>The <b>Environment<\/b> page described here is available for apps in the <b>Managed apps<\/b> section of the Hostinger dashboard. Apps listed under <b>AI agents<\/b> run on the previous setup.<\/li>\n<li>For an overview of plans and app setup, see <a data-click-id=\"hgr-post-content-link-hostinger-managed-apps-what-it-is-and-how-to-get-started\" href=\"https:\/\/www.hostinger.com\/support\/hostinger-managed-apps-what-it-is-and-how-to-get-started\/\">Hostinger Managed apps: What it is and how to get started<\/a>.<\/li>\n<li>Editing or deleting a default environment variable, or making a mistake in <code>docker-compose.yaml<\/code>, can stop your app from starting.<\/li>\n<\/ul>\n<h2 id=\"h-how-to-manage-environment-variables-in-hostinger-managed-apps\">How to manage environment variables in Hostinger Managed apps<\/h2>\n<p>Environment variables store the keys, passwords, and settings your app needs to run. Hostinger creates the default variables during setup, such as <code>AI_ROUTER_API_KEY<\/code>, <code>TZ<\/code> (time zone), and the app&#8217;s public host.<\/p>\n<ol>\n<li>In the Hostinger dashboard, go to <b>Managed apps<\/b> and click <b>Manage<\/b> next to your app.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-25899\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16.png\" alt=\"\" width=\"1686\" height=\"679\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16.png 1686w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-300x121.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-1024x412.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-768x309.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-1536x619.png 1536w\" sizes=\"(max-width: 1686px) 100vw, 1686px\" \/><\/li>\n<li>Select <b>Environment<\/b> in the left menu. The <b>Environment variables<\/b> tab opens.<\/li>\n<li>Make your changes:\n<ul>\n<li>To add a variable, click <b>Add variable<\/b> and enter its name and value.<\/li>\n<li>To change a variable, click <b>Edit<\/b> next to it.<\/li>\n<li>To remove a variable, click the trash icon next to it.<\/li>\n<\/ul>\n<\/li>\n<li>Click <b>Save and deploy<\/b>. Your app restarts to apply the changes.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26072\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25.png\" alt=\"\" width=\"1609\" height=\"718\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25.png 1609w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25-300x134.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25-1024x457.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25-768x343.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25-1536x685.png 1536w\" sizes=\"(max-width: 1609px) 100vw, 1609px\" \/><\/li>\n<\/ol>\n<p>Values are hidden by default. Use the eye icon to show one value, or click <b>Show all values<\/b>. Use the copy icon to copy a value, and <b>Search variable<\/b> to find a variable by name.<\/p>\n<h2 id=\"h-how-to-edit-docker-compose-yaml-in-hostinger-managed-apps\">How to edit docker-compose.yaml in Hostinger Managed apps<\/h2>\n<p>Open your app&#8217;s <b>Environment<\/b> page, switch to the <b>YAML<\/b> tab, edit the file, and click <b>Save and deploy<\/b>.<\/p>\n<ol>\n<li>In the Hostinger dashboard, go to <b>Managed apps<\/b> and click <b>Manage<\/b> next to your app.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-25899\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16.png\" alt=\"\" width=\"1686\" height=\"679\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16.png 1686w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-300x121.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-1024x412.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-768x309.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-25_09-16-1536x619.png 1536w\" sizes=\"(max-width: 1686px) 100vw, 1686px\" \/><\/li>\n<li>Select <b>Environment<\/b> in the left menu and open the <b>YAML<\/b> tab.<\/li>\n<li>Your app&#8217;s <code>docker-compose.yaml<\/code> file opens in an editor with line numbers. An <b>Environment variables<\/b> panel below it lists your variables with their values hidden. Click <b>Show all values<\/b> in the panel to see them.<\/li>\n<li>Edit the file. The editor flags YAML and docker-compose mistakes inside the file.<\/li>\n<li>Click <b>Save and deploy<\/b>. Your app restarts to apply the changes.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26071\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-24.png\" alt=\"\" width=\"1444\" height=\"753\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-24.png 1444w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-24-300x156.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-24-1024x534.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-24-768x400.png 768w\" sizes=\"(max-width: 1444px) 100vw, 1444px\" \/><\/li>\n<\/ol>\n<h2 id=\"h-how-to-save-and-deploy-changes-in-hostinger-managed-apps\">How to save and deploy changes in Hostinger Managed apps<\/h2>\n<p>Changes on the <b>Environment variables<\/b> and <b>YAML<\/b> tabs stay as a draft until you click <b>Save and deploy<\/b>, which applies all of them together with one app restart. The <b>Unsaved changes<\/b> counter at the top of the card shows how many changes are in the draft.<\/p>\n<ul>\n<li>To apply the draft, click <b>Save and deploy<\/b>.<\/li>\n<li>To discard the draft, click <b>Cancel<\/b>.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-26073\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_1.png\" alt=\"\" width=\"1146\" height=\"669\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_1.png 1146w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_1-300x175.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_1-1024x598.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_1-768x448.png 768w\" sizes=\"(max-width: 1146px) 100vw, 1146px\" \/><\/p>\n<p>If Hostinger Managed apps refuses the file, the reason appears below the editor and your edit is kept. Fix the issue, then click <b>Save and deploy<\/b> again.<\/p>\n<h2 id=\"h-how-to-fix-a-failed-deploy-in-hostinger-managed-apps\">How to fix a failed deploy in Hostinger Managed apps<\/h2>\n<p>When your app doesn&#8217;t start after a deploy, the <b>Environment<\/b> page shows a message that your last deploy failed, with a <b>View output<\/b> button. Two common causes are an image that can&#8217;t be found and an app that keeps restarting.<\/p>\n<ol>\n<li>Click <b>View output<\/b>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26074\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_2.png\" alt=\"\" width=\"1284\" height=\"892\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_2.png 1284w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_2-300x208.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_2-1024x711.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-25_2-768x534.png 768w\" sizes=\"(max-width: 1284px) 100vw, 1284px\" \/><br \/>\nThe <b>Deploy output<\/b> window shows the last log lines of the deploy.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-26075\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-26.png\" alt=\"\" width=\"913\" height=\"456\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-26.png 913w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-26-300x150.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-26_09-26-768x384.png 768w\" sizes=\"(max-width: 913px) 100vw, 913px\" \/><\/li>\n<li>Close the window and fix <code>docker-compose.yaml<\/code> in the <b>YAML<\/b> tab.<\/li>\n<li>Click <b>Save and deploy<\/b>.<\/li>\n<\/ol>\n<p><b>NOTES<\/b><\/p>\n<ul>\n<li>If you set a specific image version in <code>docker-compose.yaml<\/code>, Hostinger Managed apps keeps that version when your app is updated.<\/li>\n<\/ul>\n<p>Your Hostinger Managed app now runs with your updated environment variables and docker-compose.yaml. Check the <b>Environment<\/b> page after each deploy to confirm the app started, and use <b>View output<\/b> if it didn&#8217;t.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit your Managed app&#8217;s variables and docker-compose.yaml, then apply changes with one restart.<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[327],"tags":[],"class_list":["post-26063","post","type-post","status-publish","format-standard","hentry","category-managed-apps"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/26063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=26063"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/26063\/revisions"}],"predecessor-version":[{"id":26077,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/26063\/revisions\/26077"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=26063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=26063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=26063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}