基于docker的TinyTinyRSS部署过程

it不难
2022-11-28 / 0 评论 / 16 阅读 / 正在检测是否收录...

前言

准备

系统初始化

参考文章: docker和docker-compose一键安装脚本

启动ttrss

创建目录

mkdir ttrss

编辑docker-compose.yaml

version: "3"

networks:
  tnet:
    driver: bridge
    
services:
  database.postgres:
    image: postgres:13-alpine
    container_name: postgres
    environment:
      - POSTGRES_PASSWORD=postxxx@123  # please change the password
    volumes:
      - ~/postgres/data/:/var/lib/postgresql/data # persist postgres data to ~/postgres/data/ on the host
    restart: always
    networks:
      - tnet

  service.rss:
    image: wangqiru/ttrss:latest
    container_name: ttrss
    ports:
      - 181:80
    environment:
      - SELF_URL_PATH=https://n.webzhan.xyz/ # please change to your own domain
      - DB_HOST=database.postgres
      - DB_PORT=5432
      - DB_NAME=ttrss
      - DB_USER=postgres
      - DB_PASS=postxxx@123 # please change the password
      - ENABLE_PLUGINS=auth_internal,fever # auth_internal is required. Plugins enabled here will be enabled for all users as system plugins
      - FEED_LOG_QUIET=true
    stdin_open: true
    tty: true
    restart: always
    command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure-db.php && exec s6-svscan /etc/s6/'
    networks:
      - tnet

  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
    expose:
      - 3000
    restart: always
    networks:
      - tnet

  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
    expose:
      - 3000
    restart: always
    networks:
      - tnet

启动项目

cd ttrss
docker-compose up -d

利用caddy代理

参考: 利用Caddy替代nginx做代理服务器

访问

https://n.webzhan.xyz/

设置备份

添加源

关注知乎问题

https://rss.lilydjwg.me/zhihu_question/40854395

知乎专栏

https://rss.lilydjwg.me/zhihuzhuanlan/c_1433942042578157568

0

评论 (0)

取消