Avatar
使用docker快速部署moments
资源
jkjoy管理员
56
1 个月前

使用docker-compose部署

bash 复制代码
mkdir moments
cd moments
vi docker-compose.yaml

docker-compose.yaml 的内容如下

yaml 复制代码
services:
  moments:
    image: jkjoy/moments:latest
    environment:
      JWT_KEY: "BbYS93dHHfIC1cQR8rI611"
    ports:
      - "3000:3000"
    restart: always
    volumes:
      - ./data:/app/data
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro

运行容器

bash 复制代码
docker compose up -d
Avatar
jkjoy管理员楼主mod
1 个月前
0
0
language 复制代码
services:
  moments:
    image: jkjoy/moments:latest
    environment:
      JWT_KEY: "BbYS93dHHfIC1cQR8rI6"
      WEBHOOK_URL: "https://open.feishu.cn/open-apis/bot/v2/hook/*" #飞书webhook 
      SITE_URL: "https://www.moments.cn" #访问地址
      QQ_WEBHOOK_URL: "https://http.asbid.cn/send_private_msg" #QQ机器人的API
      QQ_USER_ID: "123456" #接收消息的QQ号码
    ports:
      - "3000:3000"
    volumes:
      - ./data:/app/data
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro