创建自己的rss订阅服务器
type
status
date
slug
summary
tags
category
icon
password
准备
- 一台VPS,最好是1h1g
- 安装好docker和docker-compose
开搞
git clone https://git.tt-rss.org/fox/ttrss-docker-compose.git ttrss-docker cd ttrss-docker git checkout static-dockerhub
执行上面命令会生成以下文件
root@VM59568:/www/ttrss-docker# ls config.d docker-compose.yml README.md
这个时候还需要更新一个新的文件
.env
root@VM59568:/www/ttrss-docker# vim .env
需要的内容如下
# Copy this file to .env before building the container. # Put any local modifications here. # Run under this UID/GID. # OWNER_UID=1000 # OWNER_GID=1000 # FPM settings. #PHP_WORKER_MAX_CHILDREN=5 #PHP_WORKER_MEMORY_LIMIT=256M # ADMIN_USER_* settings are applied on every startup. # Set admin user password to this value. If not set, random password will be # generated if default password is being used, look for it in the 'app' # container logs. #ADMIN_USER_PASS= # Sets admin user access level to this value. # Valid values: # -2 - forbidden to login # -1 - readonly # 0 - default user # 10 - admin #ADMIN_USER_ACCESS_LEVEL= # Auto create another user (in addition to built-in admin) unless it # already exists. #AUTO_CREATE_USER= #AUTO_CREATE_USER_PASS= #AUTO_CREATE_USER_ACCESS_LEVEL=0 # Default database credentials. #TTRSS_DB_USER= #TTRSS_DB_PASS= #TTRSS_DB_NAME= # You will likely need to set this to the correct value, see README.md # for more information. TTRSS_SELF_URL_PATH=http://localhost:8280/tt-rss # You can customize other config.php defines by setting overrides here. # See app/Dockerfile for complete list. Examples: # TTRSS_PLUGINS=auth_remote # TTRSS_SINGLE_USER_MODE=true # TTRSS_SESSION_COOKIE_LIFETIME=2592000 # TTRSS_FORCE_ARTICLE_PURGE=30 # etc, etc. # bind exposed port to 127.0.0.1 by default in case reverse proxy is used. # if you plan to run the container standalone and need origin port exposed # use next HTTP_PORT definition (or remove "127.0.0.1:"). HTTP_PORT=0.0.0.0:8280 #HTTP_PORT=8280
以下内容自行更改
#用户密码,登录的时候需搭配admin+下面设置的密码进行访问 ADMIN_USER_PASS= #数据库相关,需自己写 TTRSS_DB_USER= TTRSS_DB_PASS= TTRSS_DB_NAME=
接下来执行
docker-compose pull && docker-compose up -d
运行成功后打开
http://服务器IP:8280
就可以愉快的玩耍啦