Files
MeDBia/docker-compose.yml
Malin 6002fc6e58 feat: add macOS disc scanner + API ingest endpoint
- scanner/scan_disc.py: polls optical drive via drutil, detects disc type
  (DVD/Blu-ray/Audio CD/Data CD), reads volume label, file/track count,
  posts to remote API, auto-ejects. Pure Python + requests, no drivers.
- scanner/requirements.txt + README.md: setup and usage docs
- videodb/api_ingest.php: authenticated POST endpoint that writes disc
  records directly into the videoDB MySQL schema; token stored in config
- docker-compose.yml: adds INGEST_API_TOKEN env var
- docker-entrypoint.sh: writes ingest_api_token into config.inc.php

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 09:58:11 +02:00

49 lines
1.2 KiB
YAML

services:
app:
build:
context: ./videodb
container_name: videodb_app
ports:
- "6761:80"
environment:
DB_HOST: db
DB_USER: videodb
DB_PASSWORD: videodb_secret
DB_NAME: videodb
DB_PREFIX: videodb_
INGEST_API_TOKEN: change_this_secret_token
depends_on:
db:
condition: service_healthy
volumes:
# Persist cover images and cached thumbnails across rebuilds
- videodb_cache:/var/www/html/cache
- videodb_images:/var/www/html/images
restart: unless-stopped
db:
image: mysql:8.0
container_name: videodb_db
environment:
MYSQL_ROOT_PASSWORD: root_secret
MYSQL_DATABASE: videodb
MYSQL_USER: videodb
MYSQL_PASSWORD: videodb_secret
volumes:
- videodb_db:/var/lib/mysql
# MySQL 8 defaults to caching_sha2_password; keep native auth for broad client compat
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "videodb", "-pvideodb_secret"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
restart: unless-stopped
volumes:
videodb_db:
videodb_cache:
videodb_images: