使用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
jkjoy管理员楼主mod
19 天前
0
0
language
复制代码
#1