65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
|
version: "3.7"
|
||
|
|
||
|
services:
|
||
|
tubearchivist:
|
||
|
container_name: tubearchivist
|
||
|
restart: unless-stopped
|
||
|
image: bbilly1/tubearchivist:latest
|
||
|
volumes:
|
||
|
- ${APP_DATA_DIR}/data/media:/youtube
|
||
|
- ${APP_DATA_DIR}/data/cache:/cache
|
||
|
environment:
|
||
|
- ES_URL=http://tubearchivist-es:9200
|
||
|
- REDIS_HOST=archivist-redis
|
||
|
- TA_USERNAME=${TA_USER}
|
||
|
- TA_PASSWORD=${TA_PASSWORD}
|
||
|
- TA_HOST=archivist.privacy.family
|
||
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
||
|
depends_on:
|
||
|
- tubearchivist-es
|
||
|
- tubearchivist-redis
|
||
|
networks:
|
||
|
- tipi_main_network
|
||
|
dns:
|
||
|
- ${DNS_IP}
|
||
|
ports:
|
||
|
- ${APP_PORT}:8000
|
||
|
labels:
|
||
|
traefik.enable: ${APP_EXPOSED}
|
||
|
traefik.http.routers.libreddit.rule: Host(`${APP_DOMAIN}`)
|
||
|
traefik.http.routers.libreddit.entrypoints: websecure
|
||
|
traefik.http.routers.libreddit.service: libreddit
|
||
|
traefik.http.routers.libreddit.tls.certresolver: myresolver
|
||
|
traefik.http.services.libreddit.loadbalancer.server.port: 8000
|
||
|
|
||
|
tubearchivist-redis:
|
||
|
image: redislabs/rejson:latest
|
||
|
container_name: tubearchivist-redis
|
||
|
restart: always
|
||
|
networks:
|
||
|
- tipi_main_network
|
||
|
volumes:
|
||
|
- ${APP_DATA_DIR}/data/redis-data:/data
|
||
|
depends_on:
|
||
|
- archivist-es
|
||
|
|
||
|
tubearchivist-es:
|
||
|
image: bbilly1/tubearchivist-es:latest
|
||
|
container_name: tubearchivist-es
|
||
|
restart: always
|
||
|
environment:
|
||
|
- "xpack.security.enabled=true"
|
||
|
- "ELASTIC_PASSWORD=${ELASTIC_PASSWORD}"
|
||
|
- "discovery.type=single-node"
|
||
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
||
|
networks:
|
||
|
- tipi_main_network
|
||
|
ulimits:
|
||
|
memlock:
|
||
|
soft: -1
|
||
|
hard: -1
|
||
|
volumes:
|
||
|
- ${APP_DATA_DIR}/data/es:/usr/share/elasticsearch/data
|
||
|
expose:
|
||
|
- "9200"
|