Use official distribution of tt-rss

The previous one hasn't been updated in about a year. This one requires a couple extra containers, but is officially supported and maintained.
This commit is contained in:
Jake Howard 2022-08-24 15:23:21 +01:00
parent 475215f33a
commit dcc3055e93
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,36 +1,57 @@
version: "2.3" version: "2.3"
services: services:
tt-rss: nginx:
image: registry.gitlab.com/lunik1/docker-tt-rss:latest image: cthulhoo/ttrss-web-nginx:latest
environment:
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
- TZ={{ timezone }}
- DOCKER_MODS=theorangeone/lsio-mod-more-processes:latest
- TTRSS_DB_USER=tt-rss
- TTRSS_DB_NAME=tt-rss
- TTRSS_DB_PASS=tt-rss
- TTRSS_SELF_URL_PATH=https://tt-rss.jakehoward.tech/
- TTRSS_ENABLE_REGISTRATION=false
- TTRSS_CHECK_FOR_UPDATES=false
- TTRSS_ENABLE_GZIP_OUTPUT=true
volumes:
- "{{ app_data_dir }}/tt-rss/feed-icons:/config/feed-icons"
- ./plugins:/config/plugins.local
restart: unless-stopped restart: unless-stopped
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.tt-rss.rule=Host(`tt-rss.jakehoward.tech`) - traefik.http.routers.tt-rss.rule=Host(`tt-rss.jakehoward.tech`)
- traefik.http.middlewares.add-ttrss.addprefix.prefix=/tt-rss
- traefik.http.middlewares.remove-ttrss.stripprefix.prefixes=/tt-rss
- traefik.http.routers.tt-rss.middlewares=remove-ttrss,add-ttrss
volumes:
- /tmp/tt-rss:/var/www/html
- "{{ app_data_dir }}/tt-rss/feed-icons:/var/www/html/tt-rss/feed-icons:ro"
depends_on: depends_on:
- db - app
tmpfs:
- /config/log
networks: networks:
- default - default
- traefik - traefik
app: &app
image: cthulhoo/ttrss-fpm-pgsql-static:latest
restart: unless-stopped
environment:
- TTRSS_DB_USER=tt-rss
- TTRSS_DB_NAME=tt-rss
- TTRSS_DB_PASS=tt-rss
- TTRSS_SELF_URL_PATH=https://tt-rss.jakehoward.tech/tt-rss/
- TTRSS_ENABLE_REGISTRATION=false
- TTRSS_CHECK_FOR_UPDATES=false
- TTRSS_ENABLE_GZIP_OUTPUT=true
- TTRSS_NO_STARTUP_PLUGIN_UPDATES=true
- OWNER_UID={{ docker_user.id }}
- OWNER_GID={{ docker_user.id }}
- PHP_WORKER_MAX_CHILDREN=50
- PHP_WORKER_MEMORY_LIMIT=512M
volumes:
- /tmp/tt-rss:/var/www/html
- "{{ app_data_dir }}/tt-rss/feed-icons:/var/www/html/tt-rss/feed-icons"
- ./plugins:/var/www/html/tt-rss/plugins.local
tmpfs:
- /var/www/html/tt-rss/cache/images
- /var/www/html/tt-rss/cache/upload
- /var/www/html/tt-rss/cache/export
depends_on:
- db
updater:
<<: *app
command: /opt/tt-rss/updater.sh
depends_on:
- app
db: db:
image: postgres:14-alpine image: postgres:14-alpine
restart: unless-stopped restart: unless-stopped