Clipable 是一个自托管视频共享平台,为个人和组织提供一种简单有效的方式来托管、共享和管理其视频内容。
version: '2.1'
services:
postgres:
image: postgres:14
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- /volume1/docker/clipable/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 5s
retries: 5
minio:
image: minio/minio
volumes:
- /volume1/docker/clipable/minio:/data
# ports:
# - 9001:9001
environment:
- "MINIO_ACCESS_KEY=minio"
- "MINIO_SECRET_KEY=myminiokeythatishouldchange123"
command: server /data --console-address ":9001"
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set clipable http://minio:9000 minio myminiokeythatishouldchange123;
/usr/bin/mc mb clipable/clips;
exit 0;
"
clipable:
image: ghcr.io/clipable/clipable:latest
# All of these environment variables are documented here: https://github.com/clipable/clipable/wiki/Environment-Variables
environment:
MAX_UPLOAD_SIZE: 15GB
FFMPEG_CONCURRENCY: 1
FFMPEG_THREADS: 0
FFMPEG_PRESET: medium
FFMPEG_TUNE: film
DB_HOST: postgres
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: postgres
DB_NAME: postgres
DB_IDHASHKEY: mydbidkeythatishouldchange123
COOKIE_KEY: mycookiekey12345
S3_BUCKET: clips
S3_ACCESS: minio
S3_SECRET: myminiokeythatishouldchange123
S3_ADDRESS: minio:9000
S3_SECURE: false
ALLOW_REGISTRATION: "true"
COOKIE_DOMAIN: 88888888
ports:
- 8780:80
depends_on:
postgres:
condition: service_healthy