Files
users/docker-compose.yml
卡若 7c72871a7a chore: 同步本地到 main 和 Gitea
Made-with: Cursor
2026-03-16 14:48:26 +08:00

111 lines
3.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 所有网站类服务统一放在 project name: website 下
# 只使用唯一 MongoDBdatacenter_mongodb宿主机 27017不在此编排中新建 MongoDB
# 使用方式:在神射手目录执行 docker compose up -d
# 神射手http://localhost:3117 玩值电竞http://localhost:3001 OpenClaw 网关http://localhost:18789
name: website
services:
shensheshou:
build: .
image: shensheshou:latest
container_name: website-shensheshou
environment:
NODE_ENV: production
PORT: "3117"
# 唯一 MongoDBdatacenter_mongodb宿主机 27017若启用认证需带账号
MONGODB_URI: "mongodb://admin:admin123@host.docker.internal:27017/?authSource=admin"
ports:
- "3117:3117"
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
networks:
- website
# 玩值电竞 Web与神射手同属 website共用唯一 MongoDBdatacenter_mongodb 27017
wanzhi-web:
build:
context: ../../3、自营项目/玩值电竞App
dockerfile: Dockerfile
args:
BUILD_TIME: ${BUILD_TIME:-}
image: wanzhi-app:latest
container_name: website-wanzhi-web
environment:
MONGODB_URI: mongodb://admin:admin123@host.docker.internal:27017/?authSource=admin
NODE_ENV: production
ports:
- "3001:3000"
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
networks:
- website
# 抖音解析 API供 n8n 工作流调用,一键解析文案(可选下载视频)
douyin-api:
image: python:3.11-slim
container_name: website-douyin-api
working_dir: /app
environment:
DOUYIN_OUTPUT_DIR: /data/douyin_output
volumes:
- ../../../个人/卡若AI/03_卡木/木叶_视频内容/抖音视频解析/脚本:/app
- /Users/karuo/Documents/卡若Ai的文件夹/视频:/data/douyin_output
ports:
- "3099:3099"
command: ["sh", "-c", "pip install -q flask requests && python douyin_api.py"]
restart: unless-stopped
networks:
- website
# n8n 工作流自动化:归入 website 分类,端口 5678界面中文社区汉化镜像
n8n:
image: blowsnow/n8n-chinese:latest
container_name: website-n8n
environment:
TZ: Asia/Shanghai
GENERIC_TIMEZONE: Asia/Shanghai
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: "true"
N8N_RUNNERS_ENABLED: "true"
N8N_DEFAULT_LOCALE: "zh-CN"
ports:
- "5678:5678"
volumes:
- n8n_data:/home/node/.n8n
restart: unless-stopped
networks:
- website
# OpenClaw 网关:网站类服务,已迁入 website 编排;镜像需在 OpenClaw 项目内先 buildopenclaw:local
# 需访问本机 Ollama 时通过 host.docker.internal:11434
openclaw-gateway:
image: openclaw:local
container_name: website-openclaw-gateway
env_file:
- ../../8、小工具/Docker项目/OpenClaw/openclaw/.env
environment:
HOME: /home/node
TERM: xterm-256color
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /Users/karuo/.openclaw:/home/node/.openclaw
- /Users/karuo/.openclaw/workspace:/home/node/.openclaw/workspace
ports:
- "18789:18789"
- "18790:18790"
init: true
restart: unless-stopped
command: ["node", "dist/index.js", "gateway", "--bind", "lan", "--port", "18789"]
networks:
- website
networks:
website:
driver: bridge
volumes:
n8n_data: