使用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
增加了webhook评论通知的功能