Sign inSign up

schklom/ttrss-app

By schklom

•Updated about 21 hours ago

Multi-platform https://git.tt-rss.org/fox/tt-rss.git. Can log errors to file

Image
2

10K+

schklom/ttrss-app repository overview

Docker Pulls Docker Stars
dockeri.co

The status of the process is Sync+build+push TTRSS

WARNING: I ONLY TEST THIS IMAGE WITH ARM64

Repo images are built from: https://github.com/schklom/Mirror-workflows⁠ in the TTRSS-docker and TTRSS-docker-with-filelogging branches.
They mirror https://git.tt-rss.org/fox/tt-rss.git⁠ by copying daily if the repo changes (based on the latest commit).

The file-logging version adds a few lines to the Dockerfile to allow for file-logging.
The original image doesn't record the errors to a file, but displays them in the container instead (in /dev/stderr).
The schklom/ttrss-app:with-filelogging-latest image records the logs in /var/log/error.log instead, when the container ttrss is run with the environment variable - TTRSS_LOG_DESTINATION= (set to empty string) or TTRSS_LOG_DESTINATION: "" (depending on style preference).
This simplifies the use of fail2ban for example.
You can make sure that the environment variable is empty by checking it via docker exec ttrss env

The ttrss container will not have any error logs anymore when running docker logs ttrss.

It may be necessary to create the error log file manually before running this image, and set the right permissions, especially if running Rootless Docker and sending the logs to a folder such as /var/log.

On a typical Docker installation, these commands should be enough to create the error log

touch /path/to/the/error/log/error.log
# Replace 1000:1000 with the OWNER_UID:OWNER_GID you set in the environment variables
chown 1000:1000 /path/to/the/error/log/error.log

and make sure to mount the error log when running the container. This is an example of what you can write in your docker-compose.yml

services:
  ttrss:
    image: schklom/ttrss-app:with-filelogging-latest
    volumes:
      - /path/to/the/error/log/error.log:/var/log/error.log
      - /path/to/the/ttrss/files:/var/www/html
    environment:
      - TZ=Europe/Berlin
      - TTRSS_DB_TYPE=pgsql
      - TTRSS_DB_HOST=ttrss_db
      - TTRSS_DB_NAME=abcd
      - TTRSS_DB_USER=abcd
      - TTRSS_DB_PASS=abcd # please change this to a proper password
      - OWNER_UID=1000 # default, optional
      - OWNER_GID=1000 # default, optional
      # don't change this line below if you want file-logging
      - TTRSS_LOG_DESTINATION=
      # replace TTRSS_SELF_URL_PATH here with the url you will use to access ttrss
      - TTRSS_SELF_URL_PATH=http://192.168.0.1:8080/tt-rss/ # change to the actual URL you use

  ttrss_db:
    image: postgres:13-alpine
    environment:
      - TZ=Europe/Berlin
      - POSTGRES_DB=abcd
      - POSTGRES_USER=abcd
      - POSTGRES_PASSWORD=abcd

  ttrss_web_nginx:
    image: schklom/ttrss-web-nginx
    ports: # optional, you should use a reverse-proxy instead
      - 8080:80
    environment:
      - APP_UPSTREAM=ttrss # Name of the main TTRSS container. Defaults to "app"
    volumes:
      - /path/to/the/ttrss/files:/var/www/html:ro

Tag summary

Content type

Image

Digest

sha256:ee464bf07…

Size

44.2 MB

Last updated

about 21 hours ago

docker pull schklom/ttrss-app