mycomesh-relay 0.9.5 → 0.9.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mycomesh-relay",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "Run an independent MycoMesh V11 Relay in Docker: no domain, no certificate authority, discoverable on-chain.",
5
5
  "repository": {
6
6
  "type": "git",
package/src/cli.mjs CHANGED
@@ -135,7 +135,7 @@ export async function main(argv = process.argv.slice(2), { stdout = process.stdo
135
135
  const http = config.http_port || values["http-port"];
136
136
  const link = config.link_port || values["link-port"];
137
137
  spawnSync("docker", ["rm", "-f", RELAY], { stdio: "ignore" });
138
- docker(["run", "-d", "--name", RELAY, "--restart", "unless-stopped", ...user(), ...net.mount,
138
+ docker(["run", "-d", "--init", "--name", RELAY, "--restart", "unless-stopped", ...user(), ...net.mount,
139
139
  "-v", `${paths.keys}:/keys:ro`, "-v", `${paths.data}:/data`, "-p", `${http}:${http}`, "-p", `${link}:${link}`,
140
140
  "--log-opt", "max-size=20m", "--log-opt", "max-file=3", values.image || IMAGE,
141
141
  "relay", "serve", "--network", net.inside, "--owner-key", "/keys/owner.key", "--signer-key", "/keys/signer.key",
@@ -143,7 +143,7 @@ export async function main(argv = process.argv.slice(2), { stdout = process.stdo
143
143
  "--tls-cert", "/keys/relay.crt", "--tls-key", "/keys/relay.key"]);
144
144
  if (values["with-keeper"]) {
145
145
  spawnSync("docker", ["rm", "-f", KEEPER], { stdio: "ignore" });
146
- docker(["run", "-d", "--name", KEEPER, "--restart", "unless-stopped", ...user(), ...net.mount,
146
+ docker(["run", "-d", "--init", "--name", KEEPER, "--restart", "unless-stopped", ...user(), ...net.mount,
147
147
  "-v", `${paths.keys}:/keys:ro`, "-v", `${paths.data}:/data`, values.image || IMAGE,
148
148
  "keeper", "serve", "--network", net.inside, "--key", "/keys/owner.key", "--data-dir", "/data/keeper"]);
149
149
  }