-Background -Preparation -Install -Try it
This is the first post. I am indebted to Qiita, so I would like to give back even a little. Whether there is a need or not ...
I set my home server to Cent OS 8, so when I tried to install TinyTinyRSS, the official was docker recommended before I knew it. I haven't used docker until now, but when I tried installing it, it was easier than before, so I'd like to introduce it as a memo for myself.
Official documentation is https://tt-rss.org/wiki/InstallationNotes This time, install it with Static: uses pre-built images provided via Docker Hub.
Add repository
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Install docker-ce
dnf install docker-ce --allowerasing
If you don't have git yet, let's put it in.
dnf install git
Clone ttrss-docker to ~ / ttrss-docker. Work from here onwards will be done in this directory.
git clone https://git.tt-rss.org/fox/ttrss-docker-compose.git ttrss-docker && cd ttrss-docker
Create your own configuration file.
cp .env-dist .env
Edit .env. Only the following two points are ok.
#SELF_URL_PATH=http://localhost:8280/tt-rss
SELF_URL_PATH=http://Server name or IP address:8280/tt-rss
#HTTP_PORT=127.0.0.1:8280
HTTP_PORT=8280
Play with / usr / local / bin / docker-compose. Execution rights seem to be given manually.
curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
checkout
git checkout static-dockerhub
start docker
systemctl start docker
docker-compose pull && docker-compose up
The setting is completed up to this point.
Try accessing the address set in .env earlier and if there is no problem, it is completed. http://サーバ名orIPアドレス:8280/tt-rss The default ID and password are admin / password. Let's change it properly when it starts.
If docker-compose up, the log will continue to flow in the foreground, so stop it with Cntl-C and start it in the background.
docker-compose start
Also, don't forget to set docker to start automatically.
systemctl enable docker
In addition, once started, restart specification in docker-compose.yml
restart: unless-stopped
So it seems that it will restart even if it reboots. However, if you explicitly stop it, you need to start it.
that's all.
Recommended Posts