A primitive set of scripts to deploy tt-rss via docker-compose
|
18 hours ago | |
---|---|---|
app | 18 hours ago | |
web | 3 weeks ago | |
web-ssl | 3 weeks ago | |
.env | 2 days ago | |
README.md | 3 weeks ago | |
docker-compose.yml | 3 weeks ago |
The idea is to provide tt-rss working (and updating) out of the box with minimal fuss.
Not fully tested yet, don't use in production unless you know what you're doing. Some features may be unimplemented or broken, check the TODO.
The general outline of the configuration is as follows:
git clone https://git.tt-rss.org/fox/ttrss-docker-compose.git ttrss-docker && cd ttrss-docker
.env
and/or docker-compose.yml
if necessaryYou will probably have to edit SELF_URL_PATH
which should equal fully qualified tt-rss
URL as seen when opening it in your web browser. If this field is set incorrectly, you will
likely see the correct value in the tt-rss fatal error message.
docker-compose up
See docker-compose documentation for more information and available options.
Restarting the container will update tt-rss from the origin repository. If database needs to be updated, tt-rss will prompt you to do so on next page refresh.
docker-compose down && docker-compose rm
git pull origin master
and apply any necessary modifications to .env
, etc.docker-compose up --build
HTTP_HOST
in .env
should be set to a valid hostname (i.e. no localhost or IP address)web
container, uncomment web-ssl
in docker-compose.yml
By default, tt-rss code is stored on a persistent docker volume (app
). You can find
its location like this:
docker volume inspect ttrss-docker_app | grep Mountpoint
Alternatively, you can mount any host directory as /var/www/html
by updating docker-compose.yml
, i.e.:
volumes:
- app:/var/www/html
Replace with:
volumes:
- /opt/tt-rss:/var/www/html
Copy and/or git clone any third party plugins into plugins.local
as usual.
A common pattern is shared nginx doing SSL termination, etc.
location /tt-rss/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8280/tt-rss/;
break;
}
You will need to set SELF_URL_PATH
to a correct (i.e. visible from the outside) value in config.php
inside the container.