version: "3.8" services: back: image: zoriya/kyoo_back:edge restart: unless-stopped cpus: 1.5 env_file: - ./.env depends_on: postgres: condition: service_healthy meilisearch: condition: service_healthy volumes: - kyoo:/kyoo front: image: zoriya/kyoo_front:edge restart: unless-stopped environment: - KYOO_URL=${KYOO_URL:-http://back:5000} - PUBLIC_BACK_URL=${PUBLIC_BACK_URL} scanner: image: zoriya/kyoo_scanner:edge restart: unless-stopped depends_on: back: condition: service_healthy env_file: - ./.env environment: - KYOO_URL=${KYOO_URL:-http://back:5000} volumes: - ${LIBRARY_ROOT}:/video transcoder: image: zoriya/kyoo_transcoder:edge restart: unless-stopped env_file: - ./.env volumes: - ${LIBRARY_ROOT}:/video - ${CACHE_ROOT}:/cache - metadata:/metadata ingress: image: nginx restart: unless-stopped environment: - PORT=8901 - FRONT_URL=http://front:8901 - BACK_URL=${KYOO_URL:-http://back:5000} volumes: - ./nginx.conf.template:/etc/nginx/templates/kyoo.conf.template:ro depends_on: - back - front ports: - "8901:8901" postgres: image: postgres:15 restart: unless-stopped env_file: - ./.env volumes: - db:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 5 meilisearch: image: getmeili/meilisearch:v1.4 restart: unless-stopped volumes: - search:/meili_data environment: - MEILI_ENV=production env_file: - .env healthcheck: test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"] interval: 10s timeout: 5s retries: 5 volumes: kyoo: db: metadata: search: