Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

979 B
Raw Blame
# documentation: https://github.com/coollabsio/next-image-transformation
# slogan: Drop-in replacement for Vercel's Nextjs image optimization service.
# category: media
# tags: nextjs,image,transformation,service
# logo: coolify-logo.svg
# port: 3000

services:
  next-image-transformation:
    image: ghcr.io/coollabsio/next-image-transformation:latest
    environment:
      - SERVICE_URL_TRANSFORMATION_3000
      - NODE_ENV=production
      - ALLOWED_REMOTE_DOMAINS=${ALLOWED_REMOTE_DOMAINS:-*}
      - IMGPROXY_URL=${IMGPROXY_URL:-http://imgproxy:8080}
    healthcheck:
      test: "wget -qO- http://127.0.0.1:3000/health || exit 1"
      interval: 2s
      timeout: 10s
      retries: 5
  imgproxy:
    image: darthsim/imgproxy
    environment:
      - IMGPROXY_ENABLE_WEBP_DETECTION=true
      - IMGPROXY_JPEG_PROGRESSIVE=true
      - IMGPROXY_USE_ETAG=true
    healthcheck:
      test: ["CMD", "imgproxy", "health"]
      interval: 2s
      timeout: 10s
      retries: 5