You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 66356fb
Browse filesBrowse the repository at this point in the historyBrowse files
|`services`| Your application services, keyed by name. **Required.**See [Services](./services.md). |
30
+
|`services`| Your application services, keyed by name. See [Services](./services.md). Without it, the config sets the environment of `exec` and `run` alone.|
31
31
|`serviceRootDir`| The directory services live under, e.g. `'apps'`: each service is at `<serviceRootDir>/<name>`. **Recommended.** Without it, every service sets `targetDir`. |
32
32
|`env`| Variables of the config's own, and how `.env` files load. See [Environment](./env.md). |
33
33
|`logs`| On-screen timestamps. See [Logs](./logs.md). |
Copy file name to clipboardExpand all lines: docs/config/services.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
description: Every option of a service in stackctl.config.ts - port, healthcheck and readiness, deps, command, urls, autostart, tokens, logs, color and directory.
2
+
description: Every option of a service in stackctl.config.ts - port, healthcheck and readiness, deps, command, urls, autostart, its own env files and variables, tokens, logs, color and directory.
3
3
---
4
4
5
5
# Services
@@ -41,6 +41,7 @@ Every option is optional. `{}` is a valid service: it runs the `dev` script in
41
41
|[`autostart`](#autostart)|`true`| Whether it starts with the session. |
42
42
|[`selectable`](#selectable)|`true`| Whether the picker lists it. |
43
43
|[`targetDir`](#targetdir)|`<serviceRootDir>/<name>`| The service's directory. |
44
+
|[`env`](#env)| the config's |`.env` files, variables and overrides of its own. |
44
45
|[`tokens`](#tokens)| none | Values for this service's callbacks. |
45
46
|[`logs`](#logs)| inherits | Timestamps and log formatting for this service. |
46
47
|[`color`](#color)| assigned | The color of its log label. |
@@ -175,6 +176,42 @@ lives somewhere else. It is required when the config has no `serviceRootDir`.
175
176
-**It decides which `.env` files load**: those of every directory from the root down to it.
176
177
See [Which files load](../guide/env.md#which-files-load).
|`services`| Each service's `port`, `publicOrigin`, `urls`, `healthcheck`, `deps`, `command`, `targetDir` (as written) and `resolvedTargetDir` (absolute). |
273
+
|`services`| Each service's `port`, `publicOrigin`, `urls`, `healthcheck`, `deps`, `command`, `targetDir` (as written), `resolvedTargetDir` (absolute), and its [`env`](../config/services.md#env) combined with the config's: `envFiles`, `envOverride` and `envVars`. |
274
274
|`infra`| Per provider: the compose `file`, the profile's `projectName`, and each service's `enabled`, `port`, `urls` and `publicOrigin`. |
275
275
|`reverseProxy`| Its `port`, `tls`, `publicAddress` and `routes`. |
276
-
|`envFiles`| The `.env` filenames the profile looks for in each directory, in load order. |
276
+
|`envFiles`| The `.env` filenames the profile looks for in each directory, in load order. A service's own are on the service.|
277
277
278
278
Functions (`logs.formatter`, infra callbacks) have no JSON form and are left out.
0 commit comments