27 lines
896 B
YAML
27 lines
896 B
YAML
services:
|
|
scalable-sync:
|
|
build:
|
|
context: .
|
|
args:
|
|
SCALABLE_CLI_VERSION: "1.0.0"
|
|
PUID: ${PUID}
|
|
PGID: ${PGID}
|
|
image: scalable-sync:latest
|
|
hostname: scalable-sync
|
|
container_name: scalable-sync
|
|
restart: unless-stopped
|
|
volumes:
|
|
- scalable-sync-data:/app/data
|
|
- ${HOME}/.config/scalable-cli:/tmp/sc-config:ro
|
|
env_file:
|
|
- .env
|
|
command: ["--daemon"]
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request,json,os; req=urllib.request.Request(os.environ['WF_MCP_URL'],method='POST',data=json.dumps({'jsonrpc':'2.0','id':1,'method':'ping'}).encode(),headers={'Authorization':'Bearer '+os.environ['WF_MCP_TOKEN'],'Content-Type':'application/json'}); urllib.request.urlopen(req,timeout=5)"]
|
|
interval: 5m
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
volumes:
|
|
scalable-sync-data: |