Skip to content

Examples

solo-web

One Linux web server, as a container or a native VM: the page answers on web:80. A single machine on a single network, so every cloud-vm driver can take it (DigitalOcean and Linode included); the richer examples are multi-machine and those two decline them.

The example's folder, with the files its spec names: examples/solo-web.

version: 1
name: solo-web

networks:
  app: { cidr: 10.80.0.0/24, internet: true }

machines:
  web:
    os: debian@12
    networks: { app: 10 }
    ports: { web: { port: 80, protocol: http, publish: 8080 } }
    app:
      build: build/web                     # the container form: its own Dockerfile
      steps: [{ run: provision/web.sh }]   # the VM form: its script

checks:
  - { script: checks/web-answers.sh, wait: 60 }   # its service may still be starting

Targets

docker, hosted, docker-vm, cloud-docker, kubernetes, vagrant, proxmox, esxi, cloud-vm. See targets for what each means.

Checks

The spec's own:

  • script: checks/web-answers.sh

Plus the checks Isoloom derives from the machines' ports and the reach rules. See checks.