Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pictrs:
- image: asonix/pictrs:0.4.0-rc.7
- # this needs to match the pictrs url in lemmy.hjson
- hostname: pictrs
- # we can set options to pictrs like this, here we set max. image size and forced format for conversion
- # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
- networks:
- - lemmyinternal
- - lemmyexternalproxy
- environment:
- - PICTRS_OPENTELEMETRY_URL=http://otel:4137
- - PICTRS__API_KEY=API_KEY
- - RUST_LOG=debug
- - RUST_BACKTRACE=full
- - PICTRS__MEDIA__VIDEO_CODEC=vp9
- - PICTRS__MEDIA__GIF__MAX_WIDTH=256
- - PICTRS__MEDIA__GIF__MAX_HEIGHT=256
- - PICTRS__MEDIA__GIF__MAX_AREA=65536
- - PICTRS__MEDIA__GIF__MAX_FRAME_COUNT=400
- - PICTRS__STORE__TYPE=object_storage
- - PICTRS__STORE__ENDPOINT=Your Object Store Endpoint
- - PICTRS__STORE__BUCKET_NAME=Your Bucket Name
- - PICTRS__STORE__REGION=Your Bucket Region
- - PICTRS__STORE__USE_PATH_STYLE=false
- - PICTRS__STORE__ACCESS_KEY=Your Access Key
- - PICTRS__STORE__SECRET_KEY=Your Secret Key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement