vps/process-compose.yaml

57 lines
1.6 KiB
YAML
Raw Normal View History

mcp_server:
host: localhost
port: 3000
transport: sse
version: "0.5"
disable_env_expansion: true
vars:
FOO: 1 # {{.FOO}}
processes:
install:
disabled: true # run `process-compose run install`
command: |
util/wget a69b6424cda4887e84247b1e01dbfb36ae613ac2cb37f19e307889db2cecc39b https://github.com/glanceapp/glance/releases/download/v0.8.4/glance-linux-amd64.tar.gz
paramjob:
command: "echo @{foo}"
description: "parametrized job"
disabled: true # MCP processes must be disabled initially
working_dir: "/var/log"
mcp:
type: tool
arguments:
- name: foo
type: string
description: "example arg"
required: true
#job_$next$next1:
# command: |
# sed -i 's|^ job_| job_$next|g' process-compose.yaml
# process-compose project update -f process-compose.yaml
create_container:
command: |
ID="$RANDOM$RANDOM"
echo "starting $ID"
echo curl --data 'log=https://localhost:8080/process/logs/create_container' -X POST https://home.org/created_container/$ID
disabled: true # run `curl https://loclahost:8080/process/start/create_container`
glance:
command: pkg/glance
availability:
restart: on_failure # other options: "exit_on_failure", "always", "no" (default)
backoff_seconds: 2 # default: 1
max_restarts: 5 # default: 0 (unlimited)
readiness_probe:
http_get:
host: "localhost"
port: 8081
scheme: "http"
period_seconds: 2
timeout_seconds: 5
success_threshold: 1
failure_threshold: 3