Skip to content
  • GDPR-compliant
  • 100% hosting in Germany
  • Personal contact
  • Support included
  • Provisioning within 24 hours
Getting started & containers 3 min read

Using a docker-compose template

Many applications provide a docker-compose.yml file. Instead of typing in all the details by hand, let the customer area read the file for you. You can find the template in two places:

  • in the Create container wizard, in step 2 Configure (Creating a container)
  • in the settings of an existing container

Template from the image’s repository

If there is a docker-compose file in the repository of the selected image, the customer area automatically searches for it and displays: ‘There is a … in the repository … for this image.’ Click View template to use it.

Upload or paste your own file

  1. Click Upload file and select your docker-compose.yml - or click Paste content and paste the content.
  2. Click Read.
  3. If the file contains multiple services, select the service that belongs to this container.
  4. Check the preview and click Apply.
Template from Docker Compose with the contents of a docker-compose.yml file inserted
Inserting and reading the contents of a docker-compose.yml file.

The file is only read, not stored. It must not exceed 64 KB in size.

What is imported

  • Variables from environment with their values - passwords are never pre-filled with a sample value.
  • Volumes - named volumes are created as new volumes. Folders from the host are created as empty volumes.
  • Start command from command.
  • Ports - if a port is suitable for a web address, the customer area will suggest it. Other containers access the ports via the container name anyway.
Imported docker-compose template with variables, ports, volumes and notes
The imported template: variables, port and volume, along with notes on details that you need to fill in yourself.

What you need to add yourself

The yellow box below the preview lists everything that was not imported:

  • Sample passwords - variables such as WORDPRESS_DB_PASSWORD are set to ‘please set yourself’.
  • Additional services - each container runs exactly one service. Set up any additional services, such as the database, as separate containers within the same network.
  • Variables from files (env_file) - these files are not read.
  • Port ranges and access to the host, such as mounted system folders, as well as settings that are not possible on the platform.
  • Custom-built services - if a service is built from source code, the template may not match the selected image exactly.

Always set your own passwords

Sample values from templates are publicly known. That is why we deliberately do not carry them over. Please assign a unique, long password to each password variable and make sure it is marked as Secret.

Adjust container names

In docker-compose, services reach each other via their service name, for example db. In Container Hosting, it is the name of your container. If your database container is called mariadb, set WORDPRESS_DB_HOST to mariadb.

In the settings, only effective after ‘Save’

If you apply a template in the settings of an existing container, it only fills in the form at first. It takes effect when you click Save - the container is then recreated.

Can I start a docker-compose file with several services at once?
No. Each container runs one service. Create the other services as separate containers and connect them via a shared network.
Do you store my file?
No. The file is only read; only the details you apply and save are stored.

Was this article helpful?

New to SpeedIT Solutions?

Hosting where you know someone.

What you are reading here is what we put into practice for our customers every day. Based in Isernhagen since 2009 - with dedicated contact persons rather than a call centre.

  • 100% hosted in Germany
  • GDPR-compliant
  • Dedicated contact person
  • Provisioning within 24 hours
4.9 88 reviews on Expeero

SpeedIT Solutions - Super IT Provider

SpeedIT Solutions - Super IT Provider Sehr gute Unterstützung, top Erreichbarkeit, supergünstige Preise, beste Qualität, sehr zu empfhehlen.
Peter S.Recommends us · 08/07/2026

100 % recommend us · Expeero

All reviews on HOSTtest (opens in a new window)

You might also be interested in:

Personal support

Of course, our support team is also happy to assist you personally. If you cannot find what you are looking for in our knowledge base or require personalised support, please do not hesitate to contact us. We’re here to help you and to ensure that your experience with our products and services is as smooth and enjoyable as possible.