LAY7 cloud

Containers

With Container Hosting you run Docker containers in our cloud infrastructure. You define a template once and can create any number of deployments from it - ideal for staging, test and production environments.

Concept

Container Hosting is based on two building blocks:

Templates define how your application is structured: which containers are needed, which images are used, which ports are open and which variables should be configurable.

Deployments are running instances of a template. When creating a deployment, you specify the concrete values for the variables - such as database credentials or API keys.

This way you can use the same template for different environments and keep the configuration cleanly separated.

Creating a Template

  1. Open ContainersTemplatesCreate Template
  2. Enter a name
  3. Select a project
  4. Click Save

After creating, you will be taken to the template configuration.

Adding Containers

A template can contain multiple containers. Click Add Container and select the type:

Boot containers run once when the deployment starts - for example for database migrations or setup scripts.

Runtime containers run permanently and form your actual application.

For each container you configure:

  • Image and Tag - the Docker image from a registry
  • Command and Args - optional, if you want to override the default command
  • Performance Level - computing power and memory
  • Ports - which ports should be available externally
  • Mounts - volumes for persistent data, configs and secrets

Defining Variables

In the Variables tab you define which values should be configurable per deployment. You can then bind variables to container properties - such as environment variables, image tags or secrets.

This keeps the template reusable while the concrete values differ per deployment.

Creating a Deployment

  1. Open ContainersDeploymentsCreate Deployment
  2. Select a template
  3. Enter an instance name (e.g. production or staging)
  4. Fill in the template variables
  5. Click Save

The deployment will start and be available shortly.

Managing a Deployment

In the deployment view you see all containers with their current status.

Deploy - Applies changes from the template. Use this after template changes or to restart containers.

Commandline - Opens a shell in the running container (only for runtime containers).

Logs - Shows the container logs.

Changing Variables

In the Variables tab you can adjust the values. After saving, you need to click Deploy for the changes to take effect.

Routes

In the Routes tab you see all domains pointing to this deployment. You can also create preview routes directly to make a port accessible via an automatically generated URL - handy for testing.

Private Registries

For images from private registries, store the credentials under ContainersRegistries. These are then available when configuring containers.

Status

  • Green - Deployment is running
  • Orange - Change is being applied
  • Grey - Deployment inactive
  • Red - Deployment faulty or blocked