diff --git a/compose.yml b/compose.yml index eefd4c7..f9a09f7 100644 --- a/compose.yml +++ b/compose.yml @@ -1,15 +1,33 @@ services: pinata: image: codeberg.org/gigirassy/pinata:latest - # build: . + # Remove 127.0.0.1 if not behind reverse proxy; change host port if need be! If behind Anubis or another bot protection, change the below line to: + # expose: + # - 8080 + # and then point Anubis to pinata:8080 ports: - "127.0.0.1:8080:8080" environment: # Set this to a key generated with the "head -c 32 /dev/urandom | base64" command if you want to enable bookmarks for users; this allows cookies to be encrypted so you'll never see their searches. - - PINATA_BOOKMARK_KEY= + - PINATA_BOOKMARK_KEY=ccXVnfuxzMSzgEz3RkEdpPVKDxDBcTbULo/w7JpIYN0= # The reverse image search uses Tineye, which often requires Cloudflare! If you aren't comfortable with it, set this variable to 0. - PINATA_DISABLE_REVERSE=1 # Chunk mode! This is a feature that allows you to process Pinterest images faster at the cost of using slightly more memory. Set to 0 to disable. - - CHUNK=10 + - CHUNK=0 + # Comment below out if you don't want to use the Rust image proxy! Pinata is functional without it. + - PINATA_IMAGE_BACKEND=http://pinata-proxy:8081 restart: unless-stopped + networks: + - pinata +# Autocompressing image proxy! + pinata-proxy: + container_name: pinata-proxy + image: codeberg.org/gigirassy/image-proxy:latest + ports: + - "127.0.0.1:45233:8081" + networks: + - pinata + +networks: + pinata: