@flisk-sh/flisk-export 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/compose.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ flisk-export compose --check # exit 1 when that file is out of date (for CI)
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Writes a **standalone** `docker-compose.yml` from the bring-your-own `service.json` files (`image` or `dockerfile`, `env`,
|
|
48
|
-
`secrets.required`, `models`, `volumes`, `extraPorts`, `dependsOn`, `healthCheck`, `sidecarOf`, `container`). It runs
|
|
48
|
+
`secrets.required`, `models`, `volumes`, `extraPorts`, `dependsOn`, `healthCheck`, `sidecarOf`, `container`). It runs without Flisk (`docker compose --env-file .env -f .autogenerated/docker-compose.yml up -d` from the project root, since Compose looks for `.env` next to the file it reads): no external
|
|
49
49
|
networks, no `FLISK_*` variables, no generated secrets. `${VAR}` references in `env`, and every name in `secrets.required`, pass through as `${NAME}` for Compose to read from `.env`.
|
|
50
50
|
A volume's `name` (the Docker volume an install already has) is kept, and the project is named after its stack, so `docker compose up` finds the same data as before.
|
|
51
51
|
`healthCheck.command` becomes a Compose `healthcheck`; a service that lists a checked service in `dependsOn` waits for `service_healthy`, and one that lists a `restart: "no"` job waits for `service_completed_successfully`.
|
package/dist/compose.js
CHANGED
|
@@ -282,7 +282,9 @@ export function buildCompose(outDir, resources) {
|
|
|
282
282
|
"# GENERATED by `flisk export compose` from the service.json files. DO NOT EDIT.",
|
|
283
283
|
"# Change service.json and run `flisk export compose --force`; CI can run",
|
|
284
284
|
"# `flisk export compose --check` to fail when this file is out of date.",
|
|
285
|
-
"#
|
|
285
|
+
"# Flisk is not needed to start it. Compose reads .env from this file's folder,",
|
|
286
|
+
"# so from the project root pass the project's .env:",
|
|
287
|
+
"# docker compose --env-file .env -f .autogenerated/docker-compose.yml up -d",
|
|
286
288
|
"###############################################################################",
|
|
287
289
|
"",
|
|
288
290
|
// Without a name Compose takes the folder's (autogenerated), so containers and unnamed volumes would not match the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flisk-sh/flisk-export",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Write a Render Blueprint (render.yaml), a Cloudflare wrangler.toml or a standalone docker-compose.yml from Flisk service.json files. Never deploys.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|