mirror of
https://github.com/Viren070/docker-compose-template.git
synced 2025-12-01 23:17:00 +01:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
services:
|
|
aiostremio:
|
|
image: viren070/aiostremio:latest
|
|
container_name: aiostremio
|
|
restart: unless-stopped
|
|
expose:
|
|
- 8469
|
|
volumes:
|
|
- ./config.json:/app/data/config.json
|
|
- ${DOCKER_DATA_DIR}/aiostremio/db:/app/db
|
|
env_file:
|
|
- .env
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.aiostremio.rule=Host(`${AIOSTREMIO_HOSTNAME?}`)"
|
|
- "traefik.http.routers.aiostremio.entrypoints=websecure"
|
|
- "traefik.http.routers.aiostremio.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.aiostremio.middlewares=authelia@docker"
|
|
profiles:
|
|
- aiostremio
|
|
- all
|
|
depends_on:
|
|
aiostremio_redis:
|
|
condition: service_healthy
|
|
|
|
aiostremio_redis:
|
|
image: redis:latest
|
|
container_name: aiostremio_redis
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${DOCKER_DATA_DIR}/aiostremio/cache:/data
|
|
command: redis-server --appendonly yes --save 60 1
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
profiles:
|
|
- aiostremio
|
|
- all
|