Tube Archivist docker compose: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
|  (Created page with "Create a docker-compose.yml file similar to this:  version: '3.5'    services:    tubearchivist:      container_name: tubearchivist      restart: unless-stopped      image: bbilly1/tubearchivist      ports:        - 8000:8000      volumes:        - ./media:/youtube        - ./cache:/cache      environment:        - ES_URL=http://archivist-es:9200     # needs protocol e.g. http and port        - REDIS_CON=redis://archivist-redis:6379        - HOST_UID=1000        - HOST_G...") | No edit summary | ||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| Create a docker-compose.yml file similar to this: | Create a docker-compose.yml file similar to this: | ||
|   version: '3.5' |   version: '3.5' | ||
| Line 10: | Line 11: | ||
|         - 8000:8000 |         - 8000:8000 | ||
|       volumes: |       volumes: | ||
|         -  |         - media:/youtube | ||
|         -  |         - cache:/cache | ||
|       environment: |       environment: | ||
|         - ES_URL=http://archivist-es:9200     # needs protocol e.g. http and port |         - ES_URL=http://archivist-es:9200     # needs protocol e.g. http and port | ||
| Line 17: | Line 18: | ||
|         - HOST_UID=1000 |         - HOST_UID=1000 | ||
|         - HOST_GID=1000 |         - HOST_GID=1000 | ||
|        - TA_HOST=http://tubearchivist.local:8000  # set your host name with protocol and port | |||
|         - TA_USERNAME=tubearchivist           # your initial TA credentials | |||
|         - TA_USERNAME= | |||
|         - TA_PASSWORD=verysecret              # your initial TA credentials |         - TA_PASSWORD=verysecret              # your initial TA credentials | ||
|         - ELASTIC_PASSWORD=verysecret         # set password for Elasticsearch |         - ELASTIC_PASSWORD=verysecret         # set password for Elasticsearch | ||
| Line 39: | Line 39: | ||
|         - "6379" |         - "6379" | ||
|       volumes: |       volumes: | ||
|         -  |         - redis:/data | ||
|       depends_on: |       depends_on: | ||
|         - archivist-es |         - archivist-es | ||
| Line 57: | Line 57: | ||
|           hard: -1 |           hard: -1 | ||
|       volumes: |       volumes: | ||
|         -  |         - es:/usr/share/elasticsearch/data    # check for permission error when using bind mount, see readme | ||
|       expose: |       expose: | ||
|         - "9200" |         - "9200" | ||
|  volumes: | |||
|    media: | |||
|    cache: | |||
|    redis: | |||
|    es: | |||
| Line 74: | Line 81: | ||
| Default Admin User: | Default Admin User: | ||
|   Username:  |   Username: tubearchivist | ||
|   Password: verysecret |   Password: verysecret | ||
Latest revision as of 08:38, 1 April 2025
Create a docker-compose.yml file similar to this:
version: '3.5'
services:
  tubearchivist:
    container_name: tubearchivist
    restart: unless-stopped
    image: bbilly1/tubearchivist
    ports:
      - 8000:8000
    volumes:
      - media:/youtube
      - cache:/cache
    environment:
      - ES_URL=http://archivist-es:9200     # needs protocol e.g. http and port
      - REDIS_CON=redis://archivist-redis:6379
      - HOST_UID=1000
      - HOST_GID=1000
      - TA_HOST=http://tubearchivist.local:8000  # set your host name with protocol and port
      - TA_USERNAME=tubearchivist           # your initial TA credentials
      - TA_PASSWORD=verysecret              # your initial TA credentials
      - ELASTIC_PASSWORD=verysecret         # set password for Elasticsearch
      - TZ=America/New_York                 # set your time zone
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
      interval: 2m
      timeout: 10s
      retries: 3
      start_period: 30s
    depends_on:
      - archivist-es
      - archivist-redis
  archivist-redis:
    image: redis
    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.17.2
    container_name: archivist-es
    restart: unless-stopped
    environment:
      - "ELASTIC_PASSWORD=verysecret"       # matching Elasticsearch password
      - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
      - "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"
volumes:
  media:
  cache:
  redis:
  es:
  
 
Bring up your stack by running
docker-compose up -d
- If using docker-compose-plugin
docker compose up -d
Log in to the Admin UI
http://127.0.0.1:8000
Default Admin User:
Username: tubearchivist Password: verysecret