Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
docs: update docker usage
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed Oct 8, 2020
1 parent 9b8eefe commit c04be78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://github.com/indes/flowerss-bot/workflows/Release/badge.svg)](https://github.com/indes/flowerss-bot/actions?query=workflow%3ARelease)
[![Test Status](https://github.com/indes/flowerss-bot/workflows/Test/badge.svg)](https://github.com/indes/flowerss-bot/actions?query=workflow%3ATest)
![Build Docker Image](https://github.com/indes/flowerss-bot/workflows/Build%20Docker%20Image/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/indes/flowerss-bot)](https://goreportcard.com/report/github.com/indes/flowerss-bot)
![GitHub](https://img.shields.io/github/license/indes/flowerss-bot.svg)

Expand Down
16 changes: 11 additions & 5 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,30 @@

## Docker 部署

### 1. 下载配置文件
1.下载配置文件
在项目目录下新建 `config.yml` 文件


```bash
mkdir ~/flowerss123 &&\
wget -O ~/flowerss123/config.yml \
mkdir ~/flowerss &&\
wget -O ~/flowerss/config.yml \
https://raw.githubusercontent.com/indes/flowerss-bot/master/config.yml.sample
```


### 2. 修改配置文件
2.修改配置文件

```bash
vim ~/flowerss/config.yml
```

### 3. 运行
修改配置文件中sqlite路径(如果使用sqlite作为数据库):
```yaml
sqlite:
path: /root/.flowerss/data.db
```
3.运行
```shell script
docker run -d -v ~/flowerss:/root/.flowerss indes/flowerss-bot
Expand Down

0 comments on commit c04be78

Please sign in to comment.