63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
volumes:
|
|
redis:
|
|
es:
|
|
|
|
services:
|
|
tubearchivist:
|
|
image: bbilly1/tubearchivist
|
|
container_name: tubearchivist
|
|
volumes:
|
|
# Config
|
|
- $APPDATA/tubearchivist:/cache
|
|
# Media
|
|
- $MEDIADIR/youtube:/youtube
|
|
environment:
|
|
HOST_UID: $PUID
|
|
HOST_GID: $PGID
|
|
TZ: $TZ
|
|
ES_URL: http://archivist-es:9200
|
|
REDIS_HOST: archivist-redis
|
|
TA_HOST: $DOCKER_IP
|
|
TA_USERNAME: $TA_USER
|
|
TA_PASSWORD: $TA_PASS
|
|
ELASTIC_PASSWORD: $TA_ES_PASS
|
|
ports:
|
|
- 8200:8000
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 2m
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
depends_on:
|
|
- archivist-es
|
|
- archivist-redis
|
|
restart: unless-stopped
|
|
archivist-redis:
|
|
image: redis/redis-stack-server
|
|
container_name: archivist-redis
|
|
volumes:
|
|
- redis:/data
|
|
expose:
|
|
- "6379"
|
|
depends_on:
|
|
- archivist-es
|
|
restart: unless-stopped
|
|
archivist-es:
|
|
image: bbilly1/tubearchivist-es
|
|
container_name: archivist-es
|
|
volumes:
|
|
- es:/usr/share/elasticsearch/data
|
|
environment:
|
|
ELASTIC_PASSWORD: $TA_ES_PASS
|
|
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
|
|
expose:
|
|
- "9200"
|
|
restart: unless-stopped |