Giter Site home page Giter Site logo

ttrss_docker_compose's Introduction

ttrss_docker_compose

A docker compose configuration to run ttrss as a php-fpm service

Background

The simple way of running ttrss in a docker container is to use a prebuilt container such as https://hub.docker.com/r/clue/ttrss/. However this includes an nginx web server, and rather precludes running another web service on your machine, unless you run another web server.

This docker-compose file runs a php-fpm official image modified with components necessary for ttrss, combined with a postgres official image, that can be run from a separate web server such as caddy or nginx.

Execution

Clone the tt-rss repository into ${HOME}/public_html/ttrss. If you choose another location, you will have to modify the files.

Clone this repository into another directory named ttrss. The exact location doesn't really matter, but the directory name is used to generate the docker internal network name. You can use environmental variables to specify this, see the docker-compose documentation.

In this directory do

docker-compose build
docker-compose up -d

Which should create the two containers, and a database volume for storing your ttrss data. Check with docker ps and docker-compose logs

Integration with Web Server

I use caddy with this configuration. NGINX configurations to do the equivalent are welcome.

http://localhost/ttrss {
  root /srv/ttrss

  # ttrss is on the ttrss_default network created by docker-compose
  fastcgi / ttrss:9000 php {
    root /var/www/html/ttrss
  }

}

tt-rss procedures

You can follow all the standard tt-rss configuration and update procedures.

Feed updating

To update feeds, run the following in a crontab in the host machine

# refresh ttrss feeds
*/15 * * * * /usr/bin/docker exec --user www-data ttrss php ttrss/update.php --feeds 

ttrss_docker_compose's People

Contributors

gpbenton avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ttrss_docker_compose's Issues

URL has to end in /

For some reason if the url does not end in a /, the static files are not displayed correctly.

You can get around this by forcing the / at the end of the caddy selection URL, but it would be nice to find an incantation that allows this.

Probably a rewrite command, but a few tries didn't see any changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.