当前位置: 首页 > 工具软件 > Tiny Tiny RSS > 使用案例 >

Tiny Tiny RSS ttrss 部署

翟嘉年
2023-12-01
#!/usr/bin/env bash

# download
git clone https://git.tt-rss.org/fox/ttrss-docker-compose.git ttrss-docker
cd ttrss-docker
git checkout static-dockerhub

# install
sudo apt install postgresql-client-common
sudo apt install postgresql-client
sudo apt install postgresql-client-10
sudo apt install docker-compose
sudo apt install postgresql

# set
sudo -u postgres psql  # 使用postgres用户登录数据库
>> ALTER USER postgres WITH PASSWORD '123456';  # 密码设置为123455,有分号才会执行命令
>> \q

sudo usermod -aG docker xxx
sudo usermod -aG postgres xxx
sudo su
su xxx

vi docker-compose.yml
>> - DB_TYPE=pgsql
>> - DB_HOST=db
>> - DB_NAME=postgres
>> - DB_USER=postgres
>> - DB_PASS=123456
>> - OWNER_UID=1001 # id xxx | grep uid
>> - OWNER_GID=1001 # id xxx | grep gid
>> - HTTP_PORT=6100
>> - SELF_URL_PATH=http://xxx.xxx.xxx.xxx:6100/tt-rss/

# start up
./src/app/build-prepare.sh
docker-compose pull && docker-compose up

# login
web:http://xxx.xxx.xxx.xxx:6100/tt-rss
user:admin
pass:password

curl -d '{"op":"login","user":"you","password":"xxx"}' \
    http://xxx.xxx.xxx.xxx:6100/tt-rss/api/

 

 类似资料: