Trigger jobs on closed or local networks via a public hub and workers. No inbound access.
1.7K
Secure remote job triggering and deployment orchestration for private, VPN-only, and inbound-restricted networks.
Ferryx is a lightweight Hub-and-Worker system designed to execute deployment scripts and operational jobs in environments that cannot be reached directly from the internet.
Workers establish an outbound-only SignalR connection to a central Hub. CI/CD systems send authenticated webhook requests to the Hub, and the Hub routes each request to the appropriate Worker groups.
No inbound Worker port, static IP, or public Worker endpoint is required.
/etc/ferryxThe Hub is normally installed on a publicly reachable server.
It:
Workers run inside private or restricted networks.
Each Worker:
run.sh;docker run -d \
--name ferryx \
--restart unless-stopped \
-p 18080:18080 \
-e FERRYX_ADMIN_USERNAME='admin' \
-e FERRYX_ADMIN_PASSWORD='change-me' \
-e FERRYX_PUBLIC_URL='http://HUB_ADDRESS:18080' \
-v /etc/ferryx:/etc/ferryx \
unholyw4r/ferryx-hub:latest
The Hub always listens on container port 18080.
To publish it on a different host port:
-p 19000:18080
Then set:
-e FERRYX_PUBLIC_URL='http://HUB_ADDRESS:19000'
Open:
http://HUB_ADDRESS:18080/management/
The management panel provides:
Target changes made through the panel are written to the configuration file and applied immediately. Hub does not need to be restarted.
If admin environment variables are not supplied:
Username: admin
Password: admin
Always configure a secure password in production:
-e FERRYX_ADMIN_USERNAME='admin' \
-e FERRYX_ADMIN_PASSWORD='YOUR_STRONG_PASSWORD'
The active management URL, configuration path, username, routing information, and startup status are printed in the container logs.
Passwords and JWT values are never printed.
The Hub configuration is stored at:
/etc/ferryx/ferryx-hub.json
On first startup, Ferryx automatically creates the file and generates a secure JWT signing key.
Example:
{
"Security": {
"JwtKey": "AUTO_GENERATED_BASE64_KEY"
},
"Services": {
"my-app": {
"Groups": [
"workgroup"
]
},
"billing-api": {
"Groups": [
"pre-prod",
"production"
]
}
}
}
The mounted /etc/ferryx directory also contains:
Keep this directory persistent.
Manual configuration-file changes require a Hub restart. Changes made through the management panel are applied immediately.
A Target represents an application or logical destination.
Examples:
billing-api
frontend
customer-service
my-app
The webhook request selects a Target using the target field.
A Group represents one or more Workers that should receive the deploy event.
Examples:
development
pre-prod
production
factory-network
workgroup
Each Worker subscribes to exactly one group.
A Target can route to multiple groups:
my-app → pre-prod, production
When my-app is triggered, every connected Worker subscribed to those groups receives the event.
All deploy API requests and Worker connections require a Hub JWT.
Generate and copy a token from:
Management Panel → Hub JWT
The token should be stored as a protected CI/CD secret.
Example:
FERRYX_DEPLOY_TOKEN
Ferryx JWT tokens are intended for infrastructure-level trust. Protect both the token and the persistent /etc/ferryx directory.
docker run -d \
--name ferryx-worker \
--restart unless-stopped \
--user 0:0 \
-e FERRYX_HUB_URL='http://HUB_ADDRESS:18080' \
-e FERRYX_HUB_TOKEN='HUB_JWT' \
-e FERRYX_GROUP='workgroup' \
-v /ferryx/operation:/ferryx/operation \
-v /var/run/docker.sock:/var/run/docker.sock \
unholyw4r/ferryx-worker:latest
| Variable | Description |
|---|---|
FERRYX_HUB_URL | Hub address, including port |
FERRYX_HUB_TOKEN | JWT generated by Hub |
FERRYX_GROUP | Group the Worker subscribes to |
| Variable | Description |
|---|---|
FERRYX_WORKER_NAME | Worker name shown in the management panel |
FERRYX_OPERATION_ROOT | Custom operation root; default is /ferryx/operation |
If FERRYX_WORKER_NAME is omitted, the container hostname is used.
Do not set ASPNETCORE_URLS or ASPNETCORE_HTTP_PORTS. Worker configures its internal health endpoint automatically.
Publishing Worker port 16080 is not required for deploy execution. If host-level health access is needed, add:
-p 16080:16080
Health endpoint:
http://WORKER_ADDRESS:16080/health
Each Worker executes:
/ferryx/operation/{FERRYX_GROUP}/run.sh
Example:
/ferryx/operation/workgroup/run.sh
Example script:
#!/usr/bin/env bash
set -euo pipefail
APP_IMAGE="{{ferryx_Meta.latestimage}}"
ENVIRONMENT="{{ferryx_Env}}"
TARGET="{{ferryx_Target}}"
TAG="{{ferryx_Tag}}"
GROUP="{{ferryx_Group}}"
echo "Environment: ${ENVIRONMENT}"
echo "Target: ${TARGET}"
echo "Tag: ${TAG}"
echo "Group: ${GROUP}"
echo "Image: ${APP_IMAGE}"
docker pull "${APP_IMAGE}"
docker compose up -d
{{ferryx_Env}}
{{ferryx_Target}}
{{ferryx_Tag}}
{{ferryx_Group}}
{{ferryx_Meta.key}}
{{ferryx_Meta.nested.key}}
The meta object is free-form and can carry image names, build numbers, release IDs, or other deployment parameters.
curl --fail --location 'http://HUB_ADDRESS:18080/api/deploy' \
--header 'Authorization: Bearer HUB_JWT' \
--header 'Content-Type: application/json' \
--data '{
"env": "pre-prod",
"target": "my-app",
"tag": "v1.4.2",
"meta": {
"latestimage": "registry.example.com/my-app:v1.4.2",
"build": {
"number": "1042"
}
}
}'
| Field | Required | Description |
|---|---|---|
target | Yes | Selects the configured Target |
env | No | Environment or deployment context |
tag | No | Release, version, or informational tag |
meta | No | Free-form metadata passed to Worker scripts |
Example successful Hub response:
{
"dispatchId": 42,
"status": "published",
"groups": [
"workgroup"
]
}
published means the Hub delivered the event to the matching SignalR groups. The authoritative job outcome is the per-Worker execution result displayed in the management panel.
name: Deploy pre-prod
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger Ferryx deployment
run: |
curl --fail --location 'http://HUB_ADDRESS:18080/api/deploy' \
--header "Authorization: Bearer ${{ secrets.FERRYX_DEPLOY_TOKEN }}" \
--header 'Content-Type: application/json' \
--data '{
"env": "pre-prod",
"target": "my-app",
"tag": "${{ github.sha }}",
"meta": {
"latestimage": "registry.example.com/my-app:${{ github.sha }}"
}
}'
pipeline {
agent any
environment {
FERRYX_DEPLOY_TOKEN = credentials('ferryx-deploy-token')
}
stages {
stage('Deploy pre-prod') {
steps {
sh '''
curl --fail --location 'http://HUB_ADDRESS:18080/api/deploy' \
--header "Authorization: Bearer $FERRYX_DEPLOY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"env": "pre-prod",
"target": "my-app",
"tag": "v1",
"meta": {
"latestimage": "registry.example.com/my-app:latest"
}
}'
'''
}
}
}
}
The management panel distinguishes between:
For every Worker execution, Hub can display:
Dispatch and execution history survive Hub container restarts when /etc/ferryx is mounted persistently.
Ferryx is suitable for:
Content type
Image
Digest
sha256:333830616…
Size
91 MB
Last updated
27 days ago
docker pull unholyw4r/ferryx-hub