# 【从零开始配置VPS】08：Wallabag+TTRSS+RSShub

## TTRSS

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40

    version: "3"
    services:
      service.rss:
        image: wangqiru/ttrss:latest
        container_name: ttrss
        ports:
          - 181:80
        environment:
          - SELF_URL_PATH=https://ttrss.limour.top/ # please change to your own domain
          - DB_HOST=172.17.0.1
          - DB_PORT=5432
          - DB_NAME=ttrss
          - DB_USER=ttrss
          - DB_PASS=ttrss_passwd
        volumes:
          - ./feed-icons:/var/www/feed-icons/
        networks:
          - public_access
          - service_only
        stdin_open: true
        tty: true
        restart: always

      service.mercury: # set Mercury Parser API endpoint to `service.mercury:3000` on TTRSS plugin setting page
        image: wangqiru/mercury-parser-api:latest
        container_name: mercury
        networks:
          - public_access
          - service_only
        restart: always

      service.opencc: # set OpenCC API endpoint to `service.opencc:3000` on TTRSS plugin setting page
        image: wangqiru/opencc-api-server:latest
        container_name: opencc
        environment:
          - NODE_ENV=production
        networks:
          - service_only
        restart: always

- mkdir -p ~/app/TTRSS && cd ~/app/TTRSS && nano docker-compose.yml

- # 注意，TTRSS不支持MariaDB

- sudo docker-compose up -d && sudo chmod -R 777 feed-icons

- 反代181端口

- 默认账户：admin

- 密码：password

- 偏好设置-插件里启用 mercury和opencc

- 偏好设置-订阅源-插件里填 service.mercury:3000 和 service.opencc:3000

- 其他设置

## Wallabag

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18

    version: '3'
    services:
      wallabag:
        image: wallabag/wallabag
        environment:
          - SYMFONY__ENV__FROM_EMAIL=limour@limour.top   # 修改成你自己的邮箱
          - SYMFONY__ENV__DOMAIN_NAME=https://wallabag.limour.top  # 修改成稍后要反向代理的域名
          - SYMFONY__ENV__SERVER_NAME="Limour's Wallabag"
        ports:
          - 12080:80   # 12080可以修改成其他的自己想用的端口
        volumes:
          - ./images:/var/www/wallabag/web/assets/images  # 将图片映射挂载到本地，这样docker停止了，数据不会丢失
          - ./data:/var/www/wallabag/data
        restart: unless-stopped
        healthcheck:
          test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost"]
          interval: 1m
          timeout: 3s

- mkdir -p ~/app/Wallabag && cd ~/app/Wallabag && nano docker-compose.yml

- sudo docker-compose up -d

- 默认登录是 `wallabag:wallabag`

## RSShub

    1
    2

    version: '3'

- mkdir -p ~/app/RSShub && cd ~/app/RSShub && nano docker-compose.yml

- sudo docker-compose up -d

- 认证方式1：`https://rsshub.limour.top/foreverblog/feeds?key=ILoveRSSHub`

- 认证方式2：`https://usernam3:passw0rd@rsshub.limour.top/foreverblog/feeds`

## 清理Docker容器日志

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    #!/bin/sh

    echo "======== start clean docker containers logs ========"

    logs=$(find /var/lib/docker/containers/ -name *-json.log)

    for log in $logs
            do
                    echo "clean logs : $log"
                    cat /dev/null > $log
            done

- nano ~/clean_docker_log.sh && chmod +x ~/clean_docker_log.sh

- sudo ~/clean_docker_log.sh

从零开始配置VPS
【从零开始配置VPS】08：Wallabag+TTRSS+RSShub
https://occdn.limour.top/2509.html
Author
Limour
Posted on
January 13, 2023
Licensed under
Docker：部署AList V3 Previous
【转载】Docker搭建MicroBin Next

#### Search

Keyword