From 09f3ce0109f6e671da776cc33780b1de168b3fad Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 23 Jul 2022 14:38:50 +0700 Subject: [PATCH] add TA_HOST and ES8 documentation --- README.md | 3 ++- docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 42ddef0..36a4c51 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ The main Python application that displays and serves your video collection, buil - And another volume to save application data at **/cache**. - The environment variables `ES_URL` and `REDIS_HOST` are needed to tell Tube Archivist where Elasticsearch and Redis respectively are located. - The environment variables `HOST_UID` and `HOST_GID` allows Tube Archivist to `chown` the video files to the main host system user instead of the container user. Those two variables are optional, not setting them will disable that functionality. That might be needed if the underlying filesystem doesn't support `chown` like *NFS*. + - Set the environment variable `TA_HOST` to configure from where the interface can be accessed. This can be a domain like *example.com*, a subdomain like *ta.example.com* or an IP address like *192.168.1.20*, add without the protocol and without the port. You can add multiple hostnames separated with a space. - Change the environment variables `TA_USERNAME` and `TA_PASSWORD` to create the initial credentials. - `ELASTIC_PASSWORD` is for the password for Elasticsearch. The environment variable `ELASTIC_USER` is optional, should you want to change the username from the default *elastic*. - For the scheduler to know what time it is, set your timezone with the `TZ` environment variable, defaults to *UTC*. @@ -86,7 +87,7 @@ Should that not be an option, the Tube Archivist container takes these two addit Changing any of these two environment variables will change the files *nginx.conf* and *uwsgi.ini* at startup using `sed` in your container. ### Elasticsearch -**Note**: Newest Tube Archivist depends on Elasticsearch version 7.17 to provide an automatic updatepath in the future. +**Note**: Tube Archivist depends on Elasticsearch 8. Use `bbilly1/tubearchivist-es` to automatically get the recommended version, or use the official image with the version tag in the docker-compose file. diff --git a/docker-compose.yml b/docker-compose.yml index 20af944..30d04c7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - REDIS_HOST=archivist-redis # don't add protocol - HOST_UID=1000 - HOST_GID=1000 + - TA_HOST=tubearchivist.local # set your host name - TA_USERNAME=tubearchivist # your initial TA credentials - TA_PASSWORD=verysecret # your initial TA credentials - ELASTIC_PASSWORD=verysecret # set password for Elasticsearch @@ -33,7 +34,7 @@ services: depends_on: - archivist-es archivist-es: - image: bbilly1/tubearchivist-es # only for amd64, or use official es 7.17.4 + image: bbilly1/tubearchivist-es # only for amd64, or use official es 8.3.2 container_name: archivist-es restart: unless-stopped environment: