docker-compose.yml•1.79 kB
# ==============================================================================
# Docker Compose Configuration for Bybit MCP WebUI
# ==============================================================================
# This file provides easy deployment options for the Bybit MCP WebUI
# ==============================================================================
services:
# ==============================================================================
# Bybit MCP WebUI Service
# ==============================================================================
bybit-mcp-webui:
build:
context: ..
dockerfile: webui/Dockerfile
target: production
image: bybit-mcp-webui:latest
container_name: bybit-mcp-webui
restart: unless-stopped
stop_grace_period: 2s
# Port mapping
ports:
- "8080:8080"
# Environment variables
environment:
- NODE_ENV=production
- PORT=8080
- MCP_PORT=8080
- HOST=0.0.0.0
# Runtime configuration (these override build-time args)
- OLLAMA_HOST=${OLLAMA_HOST:-https://ollama.example.com}
- MCP_ENDPOINT=${MCP_ENDPOINT:-}
# Add your Bybit API credentials here (optional, make sure they're read only!)
# - BYBIT_API_KEY=your_api_key_here
# - BYBIT_API_SECRET=your_api_secret_here
# - BYBIT_TESTNET=true
# Security
security_opt:
- no-new-privileges:true
read_only: false
user: "1001:1001"
labels:
- "traefik.enable=true"
# Update this to your actual domain
- "traefik.http.routers.bybit-mcp.rule=Host(`bybit-mcp.example.com`)"
- "traefik.http.services.bybit-mcp.loadbalancer.server.port=8080"
- "com.docker.compose.project=bybit-mcp"
- "com.docker.compose.service=webui"