1. 创建目录
mkdir -p /home/qigx/fast/data
2. 编写docker-compose.yaml
cd /home/qigx/fast
vi docker-compose.yml
version: "3.0"
services:
fastos:
container_name: fastos
image: wangbinxingkong/fast:latest
restart: always
ports:
- "8081:8081"
- "8082:8082"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/docker/:/etc/docker/
- /home/qigx/fast/data:/fast/data
environment:
- TZ="Asia/Shanghai"
- FAST_STORE=http://8.210.124.47:8080
3. 启动容器
docker-compose up -d
4. 登入平台管理
http://服务器IP地址或域名:8081 默认账户admin: 默认密码:666666
评论区