Configuration Reference

drydock.toml lives at the workspace root. All [dev] fields are optional and fall back to the defaults shown.

[project]
name = "my-app"

[dev]
public_port = 8080          # browser-facing port
backend_port = 3001         # internal backend port
watch_debounce_ms = 300     # file change debounce interval in milliseconds

[project]

FieldTypeRequiredDescription
namestringyesThe project name. Used to identify the backend binary.

[dev]

FieldTypeDefaultDescription
public_portinteger8080The port the dev server binds to
backend_portinteger3001The port the backend process binds to
watch_debounce_msinteger300Milliseconds to wait after a file change before triggering a rebuild

[[watch]]

Zero or more custom watch entries. Each entry has the following fields:

FieldTypeRequiredDescription
pathstringyesPath to watch, relative to the project root
extensionsarray of stringsnoFile extensions to filter. Empty array watches all files.
actionstringyesOne of "reload", "rebuild", "restart"

Environment variables

The backend respects the following environment variables at runtime:

VariableDescription
DRYDOCK_BACKEND_PORTOverrides the backend port. Set automatically by the dev server.
APP_ENVIRONMENTSelects the environment config file (local or production). Defaults to local.
APP_APPLICATION__HOSTOverrides the bind host. Use 0.0.0.0 for production deployments.
APP_APPLICATION__PORTOverrides the bind port.