Skip to content

Config File

lokl uses a YAML configuration file, typically named lokl.yaml, to define your development environment.

name: my-project
version: "1"
proxy:
domain: myproject.dev
env:
NODE_ENV: development
services:
service-name:
command: ...
port: ...

Required. Project name used for identification and DNS markers.

name: my-awesome-project

Config file version. Currently "1".

version: "1"

Proxy configuration for HTTPS routing.

proxy:
domain: myproject.dev

Global environment variables inherited by all services.

env:
NODE_ENV: development
DEBUG: "true"

Map of service definitions. See Services for details.