MOF, Dash และ MCP บนเซิร์ฟเวอร์เดียว
Linux amd64 · Docker Compose v2.20+ · 2 vCPU / 4 GB · พอร์ตขาเข้า 80
ฐานข้อมูล
แหล่งอิมเมจ
ดาวน์โหลด compose.yaml
Docker Hub · MOF v2.0.15 · Dash v2.0.17 · MCP v2.0.3
ดาวน์โหลด compose.yaml ↓ดูไฟล์และอิมเมจ
# MOF v2.0.15 + Dash v2.0.17 + MCP v2.0.3 — Linux amd64
# Save as compose.yaml. Set x-db-password once before the first start.
# Keep your existing database password and volume names when upgrading.
# Keep the service names mof, mof-mcp and dash: they find each other by them (mof:8080,
# mof-mcp:8001). Renamed services can't connect.
name: mof
x-db-password: &db-password "REPLACE_WITH_A_LONG_RANDOM_PASSWORD"
x-logging: &logging
driver: json-file
options:
max-size: "20m"
max-file: "5"
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
logging: *logging
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: *db-password
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 5s
retries: 20
mof:
image: mofcloud/mof:v2.0.15
restart: unless-stopped
logging: *logging
depends_on:
postgres:
condition: service_healthy
environment:
RK_POSTGRES_0_ADDR: postgres:5432
RK_POSTGRES_0_USER: postgres
RK_POSTGRES_0_PASS: *db-password
volumes:
- offer-cache:/usr/src/mof/offer-cache
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8080/v1/mof/site-info"]
start_period: 60s
interval: 10s
timeout: 5s
retries: 30
mof-mcp:
image: mofcloud/mof-mcp:v2.0.3
restart: unless-stopped
logging: *logging
# Private: no ports. Found by its service name, so any service can restart alone.
depends_on:
mof:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "/app/build/healthcheck.js"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
dash:
image: mofcloud/dash:v2.0.17
restart: unless-stopped
logging: *logging
depends_on:
mof:
condition: service_healthy
ports:
- "80:80"
volumes:
pgdata:
offer-cache:
mofcloud/mof:v2.0.15mofcloud/dash:v2.0.17mofcloud/mof-mcp:v2.0.3Alibaba Cloud ACR · MOF v2.0.15 · Dash v2.0.17 · MCP v2.0.3
ดาวน์โหลด compose.yaml ↓ดูไฟล์และอิมเมจ
# MOF v2.0.15 + Dash v2.0.17 + MCP v2.0.3 — Linux amd64
# Save as compose.yaml. Set x-db-password once before the first start.
# Keep your existing database password and volume names when upgrading.
# Keep the service names mof, mof-mcp and dash: they find each other by them (mof:8080,
# mof-mcp:8001). Renamed services can't connect.
name: mof
x-db-password: &db-password "REPLACE_WITH_A_LONG_RANDOM_PASSWORD"
x-logging: &logging
driver: json-file
options:
max-size: "20m"
max-file: "5"
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
logging: *logging
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: *db-password
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 5s
retries: 20
mof:
image: registry.cn-hangzhou.aliyuncs.com/mofcloud/mof:v2.0.15
restart: unless-stopped
logging: *logging
depends_on:
postgres:
condition: service_healthy
environment:
RK_POSTGRES_0_ADDR: postgres:5432
RK_POSTGRES_0_USER: postgres
RK_POSTGRES_0_PASS: *db-password
volumes:
- offer-cache:/usr/src/mof/offer-cache
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8080/v1/mof/site-info"]
start_period: 60s
interval: 10s
timeout: 5s
retries: 30
mof-mcp:
image: registry.cn-hangzhou.aliyuncs.com/mofcloud/mof-mcp:v2.0.3
restart: unless-stopped
logging: *logging
# Private: no ports. Found by its service name, so any service can restart alone.
depends_on:
mof:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "/app/build/healthcheck.js"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
dash:
image: registry.cn-hangzhou.aliyuncs.com/mofcloud/dash:v2.0.17
restart: unless-stopped
logging: *logging
depends_on:
mof:
condition: service_healthy
ports:
- "80:80"
volumes:
pgdata:
offer-cache:
registry.cn-hangzhou.aliyuncs.com/mofcloud/mof:v2.0.15registry.cn-hangzhou.aliyuncs.com/mofcloud/dash:v2.0.17registry.cn-hangzhou.aliyuncs.com/mofcloud/mof-mcp:v2.0.3GHCR · MOF v2.0.15 · Dash v2.0.17 · MCP v2.0.3
ดาวน์โหลด compose.yaml ↓ดูไฟล์และอิมเมจ
# MOF v2.0.15 + Dash v2.0.17 + MCP v2.0.3 — Linux amd64
# Save as compose.yaml. Set x-db-password once before the first start.
# Keep your existing database password and volume names when upgrading.
# Keep the service names mof, mof-mcp and dash: they find each other by them (mof:8080,
# mof-mcp:8001). Renamed services can't connect.
name: mof
x-db-password: &db-password "REPLACE_WITH_A_LONG_RANDOM_PASSWORD"
x-logging: &logging
driver: json-file
options:
max-size: "20m"
max-file: "5"
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
logging: *logging
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: *db-password
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 5s
retries: 20
mof:
image: ghcr.io/mofcloud/mof:v2.0.15
restart: unless-stopped
logging: *logging
depends_on:
postgres:
condition: service_healthy
environment:
RK_POSTGRES_0_ADDR: postgres:5432
RK_POSTGRES_0_USER: postgres
RK_POSTGRES_0_PASS: *db-password
volumes:
- offer-cache:/usr/src/mof/offer-cache
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8080/v1/mof/site-info"]
start_period: 60s
interval: 10s
timeout: 5s
retries: 30
mof-mcp:
image: ghcr.io/mofcloud/mof-mcp:v2.0.3
restart: unless-stopped
logging: *logging
# Private: no ports. Found by its service name, so any service can restart alone.
depends_on:
mof:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "/app/build/healthcheck.js"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
dash:
image: ghcr.io/mofcloud/dash:v2.0.17
restart: unless-stopped
logging: *logging
depends_on:
mof:
condition: service_healthy
ports:
- "80:80"
volumes:
pgdata:
offer-cache:
ghcr.io/mofcloud/mof:v2.0.15ghcr.io/mofcloud/dash:v2.0.17ghcr.io/mofcloud/mof-mcp:v2.0.3คงชื่อ service mof, mof-mcp และ dash ไว้ service ต่างๆ ค้นหากันด้วยชื่อเหล่านี้ (mof:8080, mof-mcp:8001) จึงไม่ต้องกำหนดค่าอื่น service ที่เปลี่ยนชื่อจะเชื่อมต่อไม่ได้
รหัสผ่านฐานข้อมูล
ก่อนเริ่มทำงานครั้งแรก ให้แก้บรรทัดนี้ใน compose.yaml และใช้รหัสผ่านเดิมเมื่ออัปเกรด
x-db-password: &db-password "REPLACE_WITH_A_LONG_RANDOM_PASSWORD"เริ่มทำงาน
docker compose config --quiet
docker compose up -d
docker compose psเมื่อสถานะ healthy แล้ว ให้ดึงรหัสผ่าน Admin:
docker compose logs mof | grep "Admin password"เปิด MOF
http://SERVER_IP/adminติดตั้งไลเซนส์และสร้างผู้ใช้
http://SERVER_IPผู้ใช้ลงชื่อเข้าใช้ด้วยบัญชี MOF ของตน
เชื่อมต่อ AI client ผ่าน MCP
เปิดการเข้าถึงใน Admin → การตั้งค่า → MCP โทเค็นส่วนตัวไม่ต้องใช้ OAuth การอนุญาตผ่านเบราว์เซอร์ต้องใช้ HTTPS สาธารณะและการกำหนดค่า OAuth
เครือข่ายส่วนตัว · ต้องมีสิทธิ์ CREATEDB · ไม่รองรับ PostgreSQL ที่บังคับ TLS
ดาวน์โหลด compose.yaml
Docker Hub · MOF v2.0.15 · Dash v2.0.17 · MCP v2.0.3
ดาวน์โหลด compose.yaml ↓ดูไฟล์และอิมเมจ
# MOF v2.0.15 + Dash v2.0.17 + MCP v2.0.3 — Linux amd64
# Save as compose.yaml. Fill in the existing database address, user and password.
# Private-network PostgreSQL without TLS. TLS-only databases are not supported by this release.
# Keep your existing database password and volume names when upgrading.
# Keep the service names mof, mof-mcp and dash: they find each other by them (mof:8080,
# mof-mcp:8001). Renamed services can't connect.
name: mof
x-logging: &logging
driver: json-file
options:
max-size: "20m"
max-file: "5"
services:
mof:
image: mofcloud/mof:v2.0.15
restart: unless-stopped
logging: *logging
environment:
RK_POSTGRES_0_ADDR: "db.example.com:5432"
RK_POSTGRES_0_USER: "mof"
RK_POSTGRES_0_PASS: "REPLACE_WITH_YOUR_DATABASE_PASSWORD"
volumes:
- offer-cache:/usr/src/mof/offer-cache
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8080/v1/mof/site-info"]
start_period: 60s
interval: 10s
timeout: 5s
retries: 30
mof-mcp:
image: mofcloud/mof-mcp:v2.0.3
restart: unless-stopped
logging: *logging
# Private: no ports. Found by its service name, so any service can restart alone.
depends_on:
mof:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "/app/build/healthcheck.js"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
dash:
image: mofcloud/dash:v2.0.17
restart: unless-stopped
logging: *logging
depends_on:
mof:
condition: service_healthy
ports:
- "80:80"
volumes:
offer-cache:
mofcloud/mof:v2.0.15mofcloud/dash:v2.0.17mofcloud/mof-mcp:v2.0.3Alibaba Cloud ACR · MOF v2.0.15 · Dash v2.0.17 · MCP v2.0.3
ดาวน์โหลด compose.yaml ↓ดูไฟล์และอิมเมจ
# MOF v2.0.15 + Dash v2.0.17 + MCP v2.0.3 — Linux amd64
# Save as compose.yaml. Fill in the existing database address, user and password.
# Private-network PostgreSQL without TLS. TLS-only databases are not supported by this release.
# Keep your existing database password and volume names when upgrading.
# Keep the service names mof, mof-mcp and dash: they find each other by them (mof:8080,
# mof-mcp:8001). Renamed services can't connect.
name: mof
x-logging: &logging
driver: json-file
options:
max-size: "20m"
max-file: "5"
services:
mof:
image: registry.cn-hangzhou.aliyuncs.com/mofcloud/mof:v2.0.15
restart: unless-stopped
logging: *logging
environment:
RK_POSTGRES_0_ADDR: "db.example.com:5432"
RK_POSTGRES_0_USER: "mof"
RK_POSTGRES_0_PASS: "REPLACE_WITH_YOUR_DATABASE_PASSWORD"
volumes:
- offer-cache:/usr/src/mof/offer-cache
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8080/v1/mof/site-info"]
start_period: 60s
interval: 10s
timeout: 5s
retries: 30
mof-mcp:
image: registry.cn-hangzhou.aliyuncs.com/mofcloud/mof-mcp:v2.0.3
restart: unless-stopped
logging: *logging
# Private: no ports. Found by its service name, so any service can restart alone.
depends_on:
mof:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "/app/build/healthcheck.js"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
dash:
image: registry.cn-hangzhou.aliyuncs.com/mofcloud/dash:v2.0.17
restart: unless-stopped
logging: *logging
depends_on:
mof:
condition: service_healthy
ports:
- "80:80"
volumes:
offer-cache:
registry.cn-hangzhou.aliyuncs.com/mofcloud/mof:v2.0.15registry.cn-hangzhou.aliyuncs.com/mofcloud/dash:v2.0.17registry.cn-hangzhou.aliyuncs.com/mofcloud/mof-mcp:v2.0.3GHCR · MOF v2.0.15 · Dash v2.0.17 · MCP v2.0.3
ดาวน์โหลด compose.yaml ↓ดูไฟล์และอิมเมจ
# MOF v2.0.15 + Dash v2.0.17 + MCP v2.0.3 — Linux amd64
# Save as compose.yaml. Fill in the existing database address, user and password.
# Private-network PostgreSQL without TLS. TLS-only databases are not supported by this release.
# Keep your existing database password and volume names when upgrading.
# Keep the service names mof, mof-mcp and dash: they find each other by them (mof:8080,
# mof-mcp:8001). Renamed services can't connect.
name: mof
x-logging: &logging
driver: json-file
options:
max-size: "20m"
max-file: "5"
services:
mof:
image: ghcr.io/mofcloud/mof:v2.0.15
restart: unless-stopped
logging: *logging
environment:
RK_POSTGRES_0_ADDR: "db.example.com:5432"
RK_POSTGRES_0_USER: "mof"
RK_POSTGRES_0_PASS: "REPLACE_WITH_YOUR_DATABASE_PASSWORD"
volumes:
- offer-cache:/usr/src/mof/offer-cache
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8080/v1/mof/site-info"]
start_period: 60s
interval: 10s
timeout: 5s
retries: 30
mof-mcp:
image: ghcr.io/mofcloud/mof-mcp:v2.0.3
restart: unless-stopped
logging: *logging
# Private: no ports. Found by its service name, so any service can restart alone.
depends_on:
mof:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "/app/build/healthcheck.js"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
dash:
image: ghcr.io/mofcloud/dash:v2.0.17
restart: unless-stopped
logging: *logging
depends_on:
mof:
condition: service_healthy
ports:
- "80:80"
volumes:
offer-cache:
ghcr.io/mofcloud/mof:v2.0.15ghcr.io/mofcloud/dash:v2.0.17ghcr.io/mofcloud/mof-mcp:v2.0.3คงชื่อ service mof, mof-mcp และ dash ไว้ service ต่างๆ ค้นหากันด้วยชื่อเหล่านี้ (mof:8080, mof-mcp:8001) จึงไม่ต้องกำหนดค่าอื่น service ที่เปลี่ยนชื่อจะเชื่อมต่อไม่ได้
การเชื่อมต่อฐานข้อมูล
กรอกการเชื่อมต่อ PostgreSQL ที่มีอยู่ใน compose.yaml:
RK_POSTGRES_0_ADDR- ที่อยู่:พอร์ต
RK_POSTGRES_0_USER- ชื่อผู้ใช้
RK_POSTGRES_0_PASS- รหัสผ่าน
ข้อมูลเดิมและการเข้าถึงฐานข้อมูล
role ต้องมีสิทธิ์ login และ CREATEDB การเปลี่ยนที่อยู่ไม่ได้ย้ายข้อมูลหรือรีเซ็ตรหัสผ่าน ให้สำรองและกู้คืนแยกต่างหากก่อนเปลี่ยนฐานข้อมูล
เริ่มทำงาน
docker compose config --quiet
docker compose up -d
docker compose psเมื่อสถานะ healthy แล้ว ให้ดึงรหัสผ่าน Admin:
docker compose logs mof | grep "Admin password"เปิด MOF
http://SERVER_IP/adminติดตั้งไลเซนส์และสร้างผู้ใช้
http://SERVER_IPผู้ใช้ลงชื่อเข้าใช้ด้วยบัญชี MOF ของตน
เชื่อมต่อ AI client ผ่าน MCP
เปิดการเข้าถึงใน Admin → การตั้งค่า → MCP โทเค็นส่วนตัวไม่ต้องใช้ OAuth การอนุญาตผ่านเบราว์เซอร์ต้องใช้ HTTPS สาธารณะและการกำหนดค่า OAuth