wtree Cloud

Volumes and mounts

Fix invalid mounts, Compose volumes that don't persist, and repository files that vanish on redeploy.

Application doesn't run because of mounts

Cause: Docker Swarm refuses to run a service with an invalid mount, even when the deployment shows as successful.

Fix: recheck every mount. To see the real error, open Servers › your server › Containers › Swarm, find your application and read its task error.

Compose volumes don't work

Cause: absolute host paths such as /folder:/path aren't valid. Compose projects use this layout, and file mounts live in files:

/application-name
    /code
    /files

Fix: reference mounts relative to files with ../files/:

volumes:
  - "../files/my-database:/var/lib/mysql"
  - "../files/my-configs:/etc/my-app/config"

Named volumes such as my-database:/var/lib/mysql also work.

Repository files are empty after redeploy

Cause: each deployment, including auto deploy, cleans the repository directory and runs a fresh git clone. Docker loses its reference to the old files, so mounts like ./ or ./docker/config/odoo.conf work on the first deploy and are empty afterward.

Fix: move those files into wtree Cloud file mounts.

  1. Go to Settings › Storage and backups in your Compose service.
  2. Create a File mount for each file or directory.
  3. Paste the repository file's content into the content field and set its path.
  4. Reference it with ../files/ in docker-compose.yml.

File mounts are created in the files directory, so my-config.json is available at /files/my-config.json.

# Instead of:
#   - ./:/mnt/extra-addons/va_subscription_18
#   - ./docker/config/odoo.conf:/etc/odoo/odoo.conf
volumes:
  - ../files/va_subscription_18:/mnt/extra-addons/va_subscription_18
  - ../files/odoo.conf:/etc/odoo/odoo.conf

Copy repository files into file mounts before enabling auto deploy. Mounting them from the repository loses their contents on the next deploy.

To create a config file before the first deploy, use the same Settings › Storage and backups flow.

On this page