tubearchivist/docker-compose.yml

64 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2021-09-06 00:10:14 +07:00
services:
tubearchivist:
container_name: tubearchivist
2022-07-03 17:23:02 +07:00
restart: unless-stopped
2022-07-03 18:20:30 +07:00
image: bbilly1/tubearchivist
2021-09-06 00:10:14 +07:00
ports:
- 8000:8000
volumes:
- media:/youtube
- cache:/cache
2021-09-06 00:10:14 +07:00
environment:
- ES_URL=http://archivist-es:9200 # needs protocol e.g. http and port
2025-03-09 21:06:06 +07:00
- REDIS_CON=redis://archivist-redis:6379
2021-09-06 00:10:14 +07:00
- 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
2023-10-07 09:49:51 +07:00
healthcheck:
2025-03-27 21:36:59 +01:00
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
2023-10-07 09:49:51 +07:00
interval: 2m
timeout: 10s
retries: 3
start_period: 30s
2021-09-06 00:10:14 +07:00
depends_on:
- archivist-es
- archivist-redis
archivist-redis:
2025-03-09 21:06:06 +07:00
image: redis
2021-09-06 00:10:14 +07:00
container_name: archivist-redis
2022-07-03 17:23:02 +07:00
restart: unless-stopped
2021-10-26 16:23:41 +07:00
expose:
- "6379"
2021-09-06 00:10:14 +07:00
volumes:
- redis:/data
2021-09-06 00:10:14 +07:00
depends_on:
- archivist-es
archivist-es:
2025-05-15 06:44:01 +07:00
image: bbilly1/tubearchivist-es # only for amd64, or use official es 8.18.0
2021-09-06 00:10:14 +07:00
container_name: archivist-es
2022-07-03 17:23:02 +07:00
restart: unless-stopped
2021-09-06 00:10:14 +07:00
environment:
- "ELASTIC_PASSWORD=verysecret" # matching Elasticsearch password
2024-07-12 16:58:50 +02:00
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
2022-11-03 17:34:03 +07:00
- "xpack.security.enabled=true"
- "discovery.type=single-node"
- "path.repo=/usr/share/elasticsearch/data/snapshot"
2021-09-06 00:10:14 +07: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 16:23:41 +07:00
expose:
- "9200"
volumes:
media:
cache:
redis:
2022-02-09 23:38:18 +07:00
es: