services:
  transcoder:
    build:
      context: .
      dockerfile: Dockerfile
    # Load all variables from .env in this directory.
    env_file: .env
    environment:
      WORK_DIR: /work
    # Expose /work to the Docker host so you can inspect temp files during
    # development. Remove this volume in production for fully ephemeral runs.
    volumes:
      - transcoder_work:/work
    # The worker exits when the job queue is empty – do not restart it.
    restart: "no"

volumes:
  transcoder_work:
