infrastructure/coreos-config/plays/services/tubearchivist/docker-compose.yaml
Tobias Manske 5a8416fcdf
All checks were successful
continuous-integration/drone/push Build is passing
Refactor
2023-05-05 22:47:19 +02:00

83 lines
2.2 KiB
YAML

---
version: "3.4"
services:
tubearchivist:
restart: unless-stopped
image: bbilly1/tubearchivist:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.tubearchivist.middlewares=sso@file"
- "traefik.http.routers.tubearchivist.rule=Host(`tubearchivist.tobiasmanske.de`)"
- "traefik.http.routers.tubearchivist.entryPoints=websecure"
- "traefik.http.services.tubearchivist.loadbalancer.server.port=8000"
volumes:
- media:/youtube
- cache:/cache
environment:
- ES_URL=http://archivist-es:9200
- REDIS_HOST=archivist-redis
- HOST_UID=1000
- HOST_GID=1000
- TA_HOST=tubearchivist.tobiasmanske.de
- TA_USERNAME={{ tubearchivist.username }}
- TA_PASSWORD={{ tubearchivist.password }}
- ELASTIC_PASSWORD={{ tubearchivist.elastic_password }}
- TZ=Europe/Berlin # set your time zone
depends_on:
- archivist-es
- archivist-redis
networks:
- backend
- gateway
- default
archivist-redis:
image: redislabs/rejson:latest # for arm64 use bbilly1/rejson
container_name: archivist-redis
restart: unless-stopped
volumes:
- redis:/data
depends_on:
- archivist-es
networks:
- backend
archivist-es:
image: bbilly1/tubearchivist-es:latest # only for amd64, or use official es 8.3.3
container_name: archivist-es
restart: unless-stopped
environment:
- "xpack.security.enabled=true"
- "ELASTIC_PASSWORD={{ tubearchivist.elastic_password }}" # matching Elasticsearch password
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es:/usr/share/elasticsearch/data # check for permission error when using bind mount, see readme
networks:
- backend
volumes:
media:
driver: local
name: nobackup_ta_media
driver_opts: {{ docker.cifs.media }}
es:
driver: local
name: nobackup_ta_es
driver_opts: {{ docker.cifs.es }}
cache:
redis:
networks:
gateway:
external: true
backend:
internal: true
...