In addition to our JSON format, we also offer you to deploy your apps using the YAML format. Think of it as a Docker Compose file with a few unique add-ons that allow for container orchestration, web hosting, health checks and much more. While you still need JSON when using the API directly, our YML format is the preferred way when using our CLI as it is pretty similar to the docker-compose format.

In this documentation we’ll walk you through building your applications using the sloppy.yml file format; and explain every single configuration option in detail.

Basic structure

To enable you to orchestrate even the most complex projects with numerous containers, the basic structure of the sloppy.yml configuration file consists of:

Definition of exactly one project. 

Definition of one or multiple services.

Understanding Projects and Services

A project, for example a “web shop”, is a group of one or more services. These form logical units in your project describing technical services (e.g. “frontend” or “backend”) or other meaningful entities, like “encoding-service” or “database-service”. Each service itself comprises one or more components, called apps (here apache). Each app represents a single Docker container referencing its own image. These images can be one of the many public images from the Docker Hub or can be built by yourself. Here is a simple example, illustrating the basic structure of a sloppy.yml configuration file by defining a simple project called my-first-project.

version: "v1"
project: "my-first-project"
       image: sloppy/apache-php
       domain: ""
       ports: 80
       cmd: "/"

For more examples please visit us on GitHub.

Did this answer your question?