For this installation, we need the following prerequisites:
Now, let's start the installation procedures:
mkdir docker -p && mkdir docker/tubearchivist -p && cd docker/tubearchivist
If you prefer to docker-compose pls use the below command and create the desired YML file
nano docker-compose.yml
Or you can use the Portainer stack section as well.
Now you can paste the below script via the NANO editor if you want to use the Linux CLI, save, and exit
version: '3.3'
services:
tubearchivist:
container_name: tubearchivist
restart: unless-stopped
image: bbilly1/tubearchivist
ports:
- 8500:8000
volumes:
- ./media:/youtube
- ./cache:/cache
environment:
- ES_URL=http://archivist-es:9200 # needs protocol e.g. http and port
- REDIS_HOST=archivist-redis # don't add protocol
- HOST_UID=1000
- HOST_GID=1000
- TA_HOST=192.168.2.10 # 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
- TZ=America/Toronto # set your time zone
depends_on:
- archivist-es
- archivist-redis
archivist-redis:
image: redis/redis-stack-server
container_name: archivist-redis
restart: unless-stopped
expose:
- "6379"
volumes:
- ./redis:/data
depends_on:
- archivist-es
archivist-es:
image: bbilly1/tubearchivist-es # only for amd64, or use official es 8.9.0
container_name: archivist-es
restart: unless-stopped
environment:
- "ELASTIC_PASSWORD=verysecret" # matching Elasticsearch password
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "xpack.security.enabled=true"
- "discovery.type=single-node"
- "path.repo=/usr/share/elasticsearch/data/snapshot"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./es:/usr/share/elasticsearch/data # check for permission error when using bind mount, see readme
expose:
- "9200"
Now pls run this command:
chown 1000:0 -R /root/docker/tubearchivist/es
Now by using the below command you can run the containers stack of this open source application:
docker-compose up -d
For more information, you can watch my related video on my Youtube channel and learn how you can work with it.