1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
5.5 KiB
Markdown

10 years ago
# docker-ttrss
10 years ago
This [Docker](https://www.docker.com) image allows you to run the [Tiny Tiny RSS](http://tt-rss.org) feed reader.
10 years ago
Keep your feed history to yourself and access your RSS and atom feeds from everywhere.
You can access it through an easy to use webinterface on your desktop, your mobile browser
10 years ago
or using one of the available apps.
10 years ago
## About Tiny Tiny RSS
> *From [the official readme](http://tt-rss.org/redmine/projects/tt-rss/wiki):*
Tiny Tiny RSS is an open source web-based news feed (RSS/Atom) reader and aggregator,
designed to allow you to read news from any location,
while feeling as close to a real desktop application as possible.
![](http://tt-rss.org/images/1.9/1.jpg)
10 years ago
10 years ago
## Quickstart
This section assumes you want to get started quickly, the following sections explain the
steps in more detail. So let's start.
Just start up a new database container:
```bash
$ docker run -d --name ttrssdb nornagon/postgres
10 years ago
```
And because this docker image is available as a [trusted build on the docker index](https://index.docker.io/u/clue/ttrss/),
using it is as simple as launching this Tiny Tiny RSS installation linked to your fresh database:
10 years ago
```bash
$ docker run -d --link ttrssdb:db -p 80:80 clue/ttrss
10 years ago
```
10 years ago
Running this command for the first time will download the image automatically.
## Accessing your webinterface
The above example exposes the Tiny Tiny RSS webinterface on port 80, so that you can browse to:
http://localhost/
The default login credentials are:
10 years ago
* Username: admin
* Password: password
10 years ago
10 years ago
Obviously, you're recommended to change these as soon as possible.
10 years ago
## Installation Walkthrough
10 years ago
Having trouble getting the above to run?
This is the detailed installation walkthrough.
If you've already followed the [quickstart](#quickstart) guide and everything works, you can skip this part.
### Select database
This container requires a PostgreSQL or MySQL database instance.
10 years ago
Following docker's best practices, this container does not contain its own database,
but instead expects you to supply a running instance.
While slightly more complicated at first, this gives your more freedom as to which
database instance and configuration you're relying on.
Also, this makes this container quite disposable, as it doesn't store any sensitive
information at all.
#### PostgreSQL container
10 years ago
The recommended way to run this container is by linking it to a PostgreSQL database instance.
You're free to pick (or build) any PostgreSQL container, as long as it exposes
its database port (5432) to the outside.
10 years ago
Example with nornagon/postgres:
10 years ago
```bash
$ docker run -d --name=tinydatabase nornagon/postgres:latest
10 years ago
```
> The image nornagon/postgres exposes a database superuser that this image uses
to automatically create its user and database,
so you don't have to setup your database credentials here.
10 years ago
Use the following database options when running the container:
10 years ago
```
--link tinydatabase:db
```
#### MySQL container
If you'd like to use ttrss with a mysql database backend, simply link it to a
mysql container instead.
You're free to pick (or build) any MySQL container, as long as it exposes
its database port (3306) to the outside.
Example with sameersbn/mysql:
10 years ago
```bash
$ docker run -d --name=tinydatabase -e DB_USER=ttrss -e DB_PASS=ttrss -e DB_NAME=ttrss sameersbn/mysql:latest
```
> The image sameersbn/mysql does not expose a database superuser,
so you have to explicitly pass the database credentials here.
Use the following database options when running the container:
```
--link tinydatabase:db
```
#### External database server
If you already have a PostgreSQL or MySQL server around off docker you also can go with that.
Instead of linking docker containers you need to provide database hostname and port like so:
```
-e DB_HOST=172.17.42.1
-e DB_PORT=3306
10 years ago
```
### Database configuration
10 years ago
Whenever your run ttrss, it will check your database setup. It assumes the following
default configuration, which can be changed by passing the following additional arguments:
```
-e DB_NAME=ttrss
-e DB_USER=ttrss
-e DB_PASS=ttrss
```
If your database is exposed on a non-standard port you also need to provide DB_TYPE set
to either "pgsql" or "mysql".
```
-e DB_TYPE=pgsql
-e DB_TYPE=mysql
```
### Database superuser
10 years ago
When you run ttrss, it will check your database setup. If it can not connect using the above
configuration, it will automatically try to create a new database and user.
For this to work, it will need a superuser account that is permitted to create a new database
and user. It assumes the following default configuration, which can be changed by passing the
following additional arguments:
```
-e DB_ENV_USER=docker
-e DB_ENV_PASS=docker
```
### SELF_URL_PATH
The `SELF_URL_PATH` config value can be set on runtime. This will enable PUSH
and make the browser integration work. Default value: `http://localhost`.
```
-e SELF_URL_PATH=https://example.org/ttrss
```
### Testing ttrss in foreground
For testing purposes it's recommended to initially start this container in foreground.
This is particular useful for your initial database setup, as errors get reported to
the console and further execution will halt.
```bash
$ docker run -it --link tinydatabase:db -p 80:80 clue/ttrss
```
### Running ttrss daemonized
10 years ago
Once you've confirmed everything works in the foreground, you can start your container
in the background by replacing the `-it` argument with `-d` (daemonize).
Remaining arguments can be passed just like before, the following is the recommended
minimum:
```bash
$ docker run -d --link tinydatabase:db -p 80:80 clue/ttrss
10 years ago
```