콘텐츠로 이동
mofcloud

Docker Compose로 MOF 배포

마지막 업데이트:

한 서버에서 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 ↓
파일과 이미지 보기
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:
고정된 안정 릴리스
MOFv2.0.15
mofcloud/mof:v2.0.15
Dashv2.0.17
mofcloud/dash:v2.0.17
MCPv2.0.3
mofcloud/mof-mcp:v2.0.3

서비스 이름 mof, mof-mcp, dash는 그대로 두세요. 서비스는 이 이름(mof:8080, mof-mcp:8001)으로 서로를 찾으므로 별도 설정이 필요 없습니다. 이름을 바꾸면 연결되지 않습니다.

데이터베이스 비밀번호

처음 시작하기 전에 compose.yaml의 이 한 줄만 바꾸세요. 업그레이드할 때는 같은 비밀번호를 유지하세요.

x-db-password: &db-password "REPLACE_WITH_A_LONG_RANDOM_PASSWORD"

시작

Terminal
docker compose config --quiet
docker compose up -d
docker compose ps

정상 상태가 되면 Admin 비밀번호를 확인합니다:

Terminal
docker compose logs mof | grep "Admin password"

MOF 열기

Adminhttp://SERVER_IP/admin

라이선스를 설치하고 사용자를 만듭니다.

MOF Webhttp://SERVER_IP

사용자는 자신의 MOF 계정으로 로그인합니다.

MCP로 AI 클라이언트 연결

Admin → 설정 → MCP에서 접근을 활성화하세요. 개인 토큰에는 OAuth가 필요 없습니다. 브라우저 기반 인증에는 공개 HTTPS와 OAuth 설정이 필요합니다.