mirror of
https://github.com/Viren070/docker-compose-template.git
synced 2025-12-01 23:17:00 +01:00
fix(tmdb-addon): add REDIS_URL and redis container
This commit is contained in:
@@ -10,8 +10,7 @@ services:
|
||||
- TMDB_API=${TMDB_API_KEY?} # https://www.themoviedb.org/settings/api
|
||||
- FANART_API=${FANART_API_KEY?} # https://fanart.tv/get-an-api-key/
|
||||
- HOST_NAME=https://${TMDB_ADDON_HOSTNAME?}
|
||||
- MONGODB_URI=mongodb://mongodb:27017/tmdb
|
||||
- MONGODB_METRICS=mongodb://mongodb:27017/tmdb_metrics
|
||||
- REDIS_URL=redis://tmdb-addon_redis:6379
|
||||
- METRICS_USER=${METRICS_USER?}
|
||||
- METRICS_PASSWORD=${METRICS_PASSWORD?}
|
||||
- META_TTL=604800 # 1 week
|
||||
@@ -25,24 +24,23 @@ services:
|
||||
- "traefik.http.routers.tmdb.middlewares=authelia@docker"
|
||||
- "traefik.http.services.tmdb.loadbalancer.server.port=3232"
|
||||
depends_on:
|
||||
tmdb-addon_mongo:
|
||||
tmdb-addon_redis:
|
||||
condition: service_healthy
|
||||
profiles:
|
||||
- tmdb-addon
|
||||
- all
|
||||
|
||||
tmdb-addon_mongo:
|
||||
image: mongo:latest
|
||||
container_name: tmdb-addon_mongo
|
||||
tmdb-addon_redis:
|
||||
image: redis:latest
|
||||
container_name: tmdb-addon_redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${DOCKER_DATA_DIR}/tmdb-addon/db:/data/db
|
||||
- ${DOCKER_DATA_DIR}/tmdb-addon/redis:/data
|
||||
healthcheck:
|
||||
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 40s
|
||||
profiles:
|
||||
- tmdb-addon
|
||||
- all
|
||||
- all
|
||||
Reference in New Issue
Block a user