tubearchivist/docker-compose.yml

66 lines
1.9 KiB
YAML
Raw Normal View History

2023-10-13 01:32:40 +00:00
version: '3.5'
2021-09-05 17:10:14 +00:00
services:
tubearchivist:
container_name: tubearchivist
2022-07-03 10:23:02 +00:00
restart: unless-stopped
2022-07-03 11:20:30 +00:00
image: bbilly1/tubearchivist
2021-09-05 17:10:14 +00:00
ports:
- 8000:8000
volumes:
- media:/youtube
- cache:/cache
2021-09-05 17:10:14 +00:00
environment:
- ES_URL=http://archivist-es:9200 # needs protocol e.g. http and port
- REDIS_HOST=archivist-redis # don't add protocol
2021-09-05 17:10:14 +00:00
- HOST_UID=1000
- HOST_GID=1000
2022-07-23 07:38:50 +00:00
- 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
- TZ=America/New_York # set your time zone
2023-10-07 02:49:51 +00:00
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 2m
timeout: 10s
retries: 3
start_period: 30s
2021-09-05 17:10:14 +00:00
depends_on:
- archivist-es
- archivist-redis
archivist-redis:
2023-02-17 15:49:07 +00:00
image: redis/redis-stack-server
2021-09-05 17:10:14 +00:00
container_name: archivist-redis
2022-07-03 10:23:02 +00:00
restart: unless-stopped
2021-10-26 09:23:41 +00:00
expose:
- "6379"
2021-09-05 17:10:14 +00:00
volumes:
- redis:/data
2021-09-05 17:10:14 +00:00
depends_on:
- archivist-es
archivist-es:
2024-07-15 18:37:57 +00:00
image: bbilly1/tubearchivist-es # only for amd64, or use official es 8.14.3
2021-09-05 17:10:14 +00:00
container_name: archivist-es
2022-07-03 10:23:02 +00:00
restart: unless-stopped
2021-09-05 17:10:14 +00:00
environment:
- "ELASTIC_PASSWORD=verysecret" # matching Elasticsearch password
2024-07-12 14:58:50 +00:00
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
2022-11-03 10:34:03 +00:00
- "xpack.security.enabled=true"
- "discovery.type=single-node"
- "path.repo=/usr/share/elasticsearch/data/snapshot"
2021-09-05 17:10:14 +00:00
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es:/usr/share/elasticsearch/data # check for permission error when using bind mount, see readme
2021-10-26 09:23:41 +00:00
expose:
- "9200"
volumes:
media:
cache:
redis:
2022-02-09 16:38:18 +00:00
es: