# How to Update a One Click App and Edit Its Docker Compose File in xCloud

> Update a One Click App to a new version from App Updates, with a backup, automatic rollback and 7-day undo. Plus Redeploy and editing docker-compose.yml.

One Click Apps built from templates can be updated to a new version from xCloud. When a newer version of your app is available, xCloud shows it on the site's **Site Overview** and on the **App Updates** page. One click backs up the app's data, moves it to the new version, checks that it starts, and puts the old version back on its own if it does not. For 7 days after a good update you can undo it.

This guide also covers **Redeploy**, which restarts the app on the same version, and the **Compose** page, which lets you edit the app's `docker-compose.yml` from the dashboard. Compose editing is an advanced, permission-gated tool: once you change the file, keeping the app working is up to you.

Looking for an app to install? Browse the [one-click apps catalogue](/one-click-apps/).

This guide applies to Docker apps installed from the One Click Apps template catalog. For the full install flow, see [how to use One-Click App Templates](/docs/how-to-use-one-click-app-templates-in-xcloud/). Need a server for your containers? See [container hosting on xCloud](/docker-hosting/) for server sizes and prices.

## See when an update is available

xCloud compares the version your app runs with the newest version in the One Click Apps catalog. When a newer one exists, you see it in four places:

- **Site Overview:** a banner reads **"Ackee 3.7.1 is available"** (with your app's name and version), shows **You're on** and the current version, and says whether it is a **Minor** or **Major** update. It has a **What's new** link to the app's release notes and an **Update** button.
- **App Updates** in the site sidebar: the full update page, described below. The sidebar item shows a badge while an update waits.
- **Your site list:** the app's version, with a small pill showing the new version. Click the pill to open **App Updates**.
- **[To-Do Center](/docs/use-the-to-do-center-in-xcloud/):** an **App updates** item lists every app with an update waiting ("An app update is available on 1 site"). Small updates have a **Fix** button there; each site also has a **Review update** link.

![Site Overview of a One Click App with the "Ackee 3.7.1 is available" banner and its Update button](/_landing/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud-image-3.png)

You see **App Updates** when the app runs in Docker and your team role lets you update the site. Updates are checked once the app is running, so an app that is still installing, or failed to install, shows no version yet.

## Update a One Click App to a new version

### Step 1: Open App Updates

Open the app's site and select **App Updates** in the sidebar. (The **Update** button on the Site Overview banner skips this step and opens the dialog in Step 2.)

![The App Updates page with You're on 3.6.0, Available 3.7.1, Small update and the Back up and update button](/_landing/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud-image-4.png)

**Expected result:** the page shows **You're on** (your version) and **Available** (the new version), with a **Small update** or **Big update** badge and a **What's new in** link to the release notes. If your app is current, it says **You're up to date.**

### Step 2: Start the update

Click **Back up and update**. A dialog titled **Update Ackee to 3.7.1?** (with your app and version) opens. For a **Small update**, it lists three notes:

- **We back up your app's data first.** If the backup fails, nothing changes.
- **Your app is offline for a few minutes.** The new version downloads while your app runs. It goes offline only for the backup and restart.
- **If 3.7.1 does not start, we put 3.6.0 back.** (with your versions) You can also undo the update yourself for 7 days.

![The Update Ackee to 3.7.1? dialog with the three safety notes and the Back up and update button](/_landing/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud-image-5.png)

Click **Back up and update** in the dialog.

**A Big update dialog looks different.** A **Big update** moves the app to a new major version. Instead of the three notes, the dialog shows a warning, **"Big updates can change how the app works."**, with a link to the new version's release notes. Below it, one line sums up the same protection: **"Same safety net: we back up first, put 3.6.0 back if 3.7.1 does not start, and you can undo for 7 days."** (with your versions). Read the release notes, tick **I've read the release notes**, and only then can you click **Back up and update**.

### Step 3: Follow the progress

A steps card shows where the update is:

| Step | What happens |
|---|---|
| **Downloading** the new version | Your app keeps running. |
| **Backing up your data** | Your app is offline from here. |
| **Starting** the new version | xCloud waits for each part of the app to report healthy. |
| **Checking it works** | If it does not, xCloud puts the old version and your data back. |
| **Done** | The update is finished. |

You can leave the page. The result shows on **App Updates** and in the site's **Events**.

**Expected result:** a green banner reads **"Updated to 3.7.1"** with the time it took, and **"We keep your backup from before the update until"** a date 7 days later. The new row in **Update history** says **Updated**.

### If the update does not work

xCloud does not leave a half-updated app behind:

- **The backup fails, or there is not enough free disk space for it:** nothing changes, and your app keeps running the old version.
- **The new version does not start or does not report healthy in time:** xCloud puts the old version and your data back on its own. The banner reads **"The update did not work, so we put 3.6.0 back"** (with your old version), and the history row says **Put back** that version.
- **xCloud could not put the old version back:** the page says so and offers **Contact support**.

Use **View log** on the result banner to open the update in **Events**.

## Undo an update

For 7 days after a good update, you can go back to the version you had before.

1. Open **App Updates**.
2. Click **Undo** on the newest row in **Update history**, or **Undo update** on the result banner.

![Update history on the App Updates page with the Undo button on the newest row](/_landing/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud-image-6.png)

3. Read the dialog: **"We put back 3.6.0 and your data as it was on"** the update date. **Changes made in the app since then are lost.**
4. Keep **Back up the current data first** ticked (it is on by default) if you may need today's data later.
5. Click **Undo update**.

**Expected result:** the history row changes to **Undone**, and the app runs the earlier version with the data from before the update. Undo is only offered for the newest update and only until its backup expires.

## Updates you have to do by hand

Some updates can't be done with one click. **App Updates** then shows **"This update has to be done by hand."** with the reason, a **How to upgrade** button that opens the app's own upgrade guide, and **Contact support** when we need to help. Common reasons:

| What the page says | What it means |
|---|---|
| The maker of this app asks for its updates to be done by hand. | The app's maker does not support automatic upgrades. |
| This is a big update that can change how the app works, so it has to be done by hand. | This app allows one-click updates only within the same major version. |
| You edited this app's Compose file by hand, so we cannot tell what is safe to change. | A Compose edit (see below) turns off one-click updates for that app. |
| This update moves the app's database to a new major version. That means converting your data, which we cannot do with one click. | Moving the database to a new major version needs a data conversion you do yourself. |
| This update changes more than the version of the app, so it has to be done by hand. | The new version changes services, not only image versions. |
| This app now deploys from your own repository, so its updates come from there. | The app is [connected to a Git repository](/docs/connect-a-one-click-app-to-a-git-repository-in-xcloud/). |

To do a manual update, follow the app's upgrade guide and use [Move an app to a newer version](#move-an-app-to-a-newer-version) below. For an example, the guide to [deploy Directus with xCloud](/docs/deploy-directus-with-xcloud/#update-and-back-up-directus) lists what to back up before you move Directus to a new version, and the guide to [deploy Baserow with xCloud](/docs/deploy-baserow-with-xcloud/#update-and-back-up-baserow) does the same for Baserow. The guide to [deploy Pterodactyl Panel with xCloud](/docs/deploy-pterodactyl-with-xcloud/#update-pterodactyl) explains why **Update** keeps Pterodactyl on its pinned version, the guide to [deploy Keycloak with xCloud](/docs/deploy-keycloak-with-xcloud/#back-up-and-update-keycloak) lists what to back up before you change the Keycloak image tag, and the guide to [deploy LimeSurvey with xCloud](/docs/deploy-limesurvey-with-xcloud/#updating-limesurvey) explains why changes made with LimeSurvey's built-in updater may not last.

## Redeploy a One Click App

**Redeploy** is in the **App Actions** menu, next to **Start**, **Stop** and **Restart**. It was called **Update** before App Updates existed. Redeploy does not change the app's version: it pulls the images that the app's current `docker-compose.yml` names and recreates the containers.

![The App Actions menu of a One Click App open on Site Overview with Start, Stop, Restart and Redeploy](/_landing/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud-image-7.png)

1. Open the app's site and click **App Actions → Redeploy**.
2. Read the confirmation: **"This pulls the images in your Compose file and recreates the containers. Your data volumes are preserved. The app restarts during the redeploy."**
3. Click **Redeploy** to confirm.

**Expected result:** xCloud shows **"Redeploy started. Pulling the images in your Compose file and recreating the containers."** The app is offline for a short time while its containers restart. Follow progress in the site's **Events**.

Use Redeploy to recreate the running services, or to pick up a new image published under the same tag. To move to a new version, use **App Updates**. While one App Actions action runs, the other items are disabled.

## Use the Public API or MCP

Developers and AI assistants can do the same through the xCloud Public API and MCP server (see [API tokens and MCP access](/docs/multi-team-api-tokens-and-mcp-access/)): `oneclickApps.updateStatus` reads whether an update is available and the newest update's state, `oneclickApps.update` starts an update, and `oneclickApps.undoUpdate` undoes the newest one. Both write operations return right away, and you can follow their progress until they finish.

## Edit the app's Docker Compose file

The **Compose** page opens the app's `docker-compose.yml` in an editor. The file lives at `/var/www/<site>/docker-compose.yml` on the server.

### Who can edit Compose

Compose editing has its own team permission, described as letting members **"view and edit the docker-compose.yml of a OneClick template site, which defines the containers, mounts and privileges the server runs."** It is never granted automatically, even to members whose role picks up new permissions on its own, because a compose edit can run privileged containers on the server. The team owner always has it. Any other member needs a team admin to grant it on purpose. See [team roles and permissions in xCloud](/docs/team-roles-permissions-in-xcloud/).

Members without the permission do not see **Compose** in the site sidebar. The editor is also read-only while the site is disabled.

### Edit and redeploy

1. Open the app's site and select **Compose** in the sidebar.
2. Read the warning at the top. xCloud does not reconcile an edited file against the catalog template.
3. **Copy the current file to a safe place before you change anything.** xCloud does not keep earlier versions.
4. Edit the file in **Docker Compose (docker-compose.yml)**.
5. Click **Save & Redeploy**, then confirm **Save & redeploy this app?**

![Compose page of an xCloud One Click App with the docker-compose.yml editor and Save & Redeploy](/_landing/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud-image-2.png)

**Expected result:** xCloud shows **"Saved — redeploy in progress"** and recreates the containers from your edited file.

There is no save-only option. Saving always redeploys, because a saved file that is not applied would look like it worked when nothing changed.

### What xCloud checks, and what it does not

Before saving, xCloud checks only that the file is valid YAML with a non-empty `services` section and that no service is empty. It does not check that your images exist, that ports and volumes are right, or that the app still works.

If two people have the editor open, the second save is refused with a message that the file changed on the server. Reload the editor and reapply your changes.

If the file saves but the redeploy fails, xCloud keeps your edited file and reports **"Saved docker-compose.yml, but redeploy failed."** Fix the file and save again, or restore your copy.

### Do not remove or rename volumes

Volumes hold the app's data. If you remove or rename a volume in the compose file, the data in it can be **permanently deleted** on the next redeploy. Keep the existing volume definitions as they are.

## Move an app to a newer version

Use **App Updates** first. Edit the image line under **Compose** only when **App Updates** says the update has to be done by hand, or when you need a version the catalog does not offer yet. **Redeploy** pulls the same fixed version again, so it does not move the app to a newer one. After a Compose edit, one-click updates stay off for that app.

1. Take a backup and copy the current file to a safe place.
2. Read the release notes for the new version.
3. Find the image line. A fixed image looks like `image: ghcr.io/example/app:v1.2.3@sha256:...`.
4. Replace the version number. If the line also has a `sha256` code, replace that too. You can find the sha256 code for each version on the page where the app publishes its images, such as GitHub Packages or Docker Hub. Change both parts. If you change only the version number, the old version keeps running.
5. Click **Save & Redeploy** and confirm.

**Expected result:** the app restarts on the new version. Sign in and check your data.

Going back to an older image may not undo database changes the newer version made. If an upgrade goes wrong, restore your backup.

## Recover from a bad compose edit

xCloud has no undo for compose edits. To roll back:

1. Open **Compose** again.
2. Replace the editor content with the copy you saved before editing.
3. Click **Save & Redeploy** and confirm.

If you did not keep a copy and the app no longer starts, restore the app from a backup or contact support. An edited file also stays in place for every later **Redeploy**, so a broken file breaks redeploys too.

## Environment, Compose or Domain: which to change

| You want to change | Use | Effect |
|---|---|---|
| App settings the app reads from variables (mail settings, feature flags, keys) | **Environment** (`.env`) | Save & Redeploy restarts the containers briefly. |
| The containers themselves: images, services, resource limits, mounts | **Compose** (`docker-compose.yml`) | Save & Redeploy recreates the containers. You own the file from then on. |
| The domains the app answers on | **Domain** | xCloud updates the app's configuration for you. Do not hard-code domains in Compose. An app with several web interfaces has one domain each; see [multi-domain One Click apps](/docs/how-to-install-multi-domain-one-click-apps-in-xcloud/). |
| The app version, to the newest version in the catalog | **App Updates → Back up and update** | Backs up first, puts the old version back if the new one does not start, and can be undone for 7 days. |
| The running containers, from the same images | **App Actions → Redeploy** | Pulls the images in the compose file and recreates containers. Data volumes are preserved. |
| The app version, when App Updates says to do it by hand | **Compose** | Edit the image line, as in [Move an app to a newer version](#move-an-app-to-a-newer-version). |

## Frequently asked questions

### Does updating a One Click App delete my data?

No. App Updates backs up the app's data first. If the new version does not start, xCloud puts the old version and your data back on its own, and you can undo a good update for 7 days.

### What is the difference between Update and Redeploy?

Update, on App Updates, moves the app to a newer version with a backup and a way back. Redeploy, in App Actions, keeps the version and only pulls the images in the compose file again and recreates the containers.

### Why can't I see the Compose page?

Compose editing needs its own team permission, which is never granted automatically. The team owner has it. Other members need a team admin to grant it on purpose.

### Can xCloud undo a bad compose edit?

No. xCloud does not keep earlier versions of the compose file. Keep a copy before you edit, and paste it back with Save & Redeploy if the app breaks. Undo on App Updates only reverses a version update.

If you run into any issues updating or editing a One Click App, feel free to reach out to our [support team](/docs/access-built-in-support-portal-in-xcloud/).
