Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active October 31, 2024 19:23
Show Gist options
  • Save eggplants/b805ed97fc579c92f402885709028253 to your computer and use it in GitHub Desktop.
Save eggplants/b805ed97fc579c92f402885709028253 to your computer and use it in GitHub Desktop.
Record YouTube Live anytime
# Usage:
# mkdir -m 777 -p ./keeby
# cd keeby
# ...copy this compose file...
# docker compose up -d
services:
ytarchive:
container_name: ytarchive
image: ghcr.io/jim60105/ytarchive:latest
volumes:
- .:/download
restart: always
command: -r 15 https://www.youtube.com/@keeby_boy/streams best
logging:
options:
max-size: 1g
@eggplants
Copy link
Author

apiVersion: apps/v1
kind: Deployment
metadata:
  name: ytarchive
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ytarchive
  template:
    metadata:
      labels:
        app: ytarchive
    spec:
      containers:
        - name: ytarchive
          image: ghcr.io/jim60105/ytarchive:latest
          args: ["-r", "15", "https://www.youtube.com/@keeby_boy/streams", "best"]
          volumeMounts:
            - name: download-volume
              mountPath: /download
          resources:
            limits:
              memory: "1Gi"
      restartPolicy: Always
      volumes:
        - name: download-volume
          hostPath:
            path: /path/to/your/directory  # フルパスを指定
            type: Directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment