Update service definition example for convention-driven format
Drop uses_mcdsl, full image URLs, ports, network, user, restart. Add route declarations and service-level version. Image names and most config are now derived from conventions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -238,10 +238,7 @@ Example: `~/.config/mcp/services/metacrypt.toml`
|
|||||||
name = "metacrypt"
|
name = "metacrypt"
|
||||||
node = "rift"
|
node = "rift"
|
||||||
active = true
|
active = true
|
||||||
path = "metacrypt"
|
version = "v1.0.0"
|
||||||
|
|
||||||
[build]
|
|
||||||
uses_mcdsl = false
|
|
||||||
|
|
||||||
[build.images]
|
[build.images]
|
||||||
metacrypt = "Dockerfile.api"
|
metacrypt = "Dockerfile.api"
|
||||||
@@ -249,22 +246,26 @@ metacrypt-web = "Dockerfile.web"
|
|||||||
|
|
||||||
[[components]]
|
[[components]]
|
||||||
name = "api"
|
name = "api"
|
||||||
image = "mcr.svc.mcp.metacircular.net:8443/metacrypt:v1.0.0"
|
|
||||||
network = "mcpnet"
|
|
||||||
user = "0:0"
|
|
||||||
restart = "unless-stopped"
|
|
||||||
ports = ["127.0.0.1:18443:8443", "127.0.0.1:19443:9443"]
|
|
||||||
volumes = ["/srv/metacrypt:/srv/metacrypt"]
|
volumes = ["/srv/metacrypt:/srv/metacrypt"]
|
||||||
|
|
||||||
|
[[components.routes]]
|
||||||
|
name = "rest"
|
||||||
|
port = 8443
|
||||||
|
mode = "l4"
|
||||||
|
|
||||||
|
[[components.routes]]
|
||||||
|
name = "grpc"
|
||||||
|
port = 9443
|
||||||
|
mode = "l4"
|
||||||
|
|
||||||
[[components]]
|
[[components]]
|
||||||
name = "web"
|
name = "web"
|
||||||
image = "mcr.svc.mcp.metacircular.net:8443/metacrypt-web:v1.0.0"
|
|
||||||
network = "mcpnet"
|
|
||||||
user = "0:0"
|
|
||||||
restart = "unless-stopped"
|
|
||||||
ports = ["127.0.0.1:18080:8080"]
|
|
||||||
volumes = ["/srv/metacrypt:/srv/metacrypt"]
|
volumes = ["/srv/metacrypt:/srv/metacrypt"]
|
||||||
cmd = ["server", "--config", "/srv/metacrypt/metacrypt.toml"]
|
cmd = ["server", "--config", "/srv/metacrypt/metacrypt.toml"]
|
||||||
|
|
||||||
|
[[components.routes]]
|
||||||
|
port = 443
|
||||||
|
mode = "l7"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Active State
|
### Active State
|
||||||
|
|||||||
Reference in New Issue
Block a user