2024-03-06 09:57:39 +00:00
|
|
|
# documentation: https://github.com/coollabsio/next-image-transformation
|
2024-03-06 09:58:08 +00:00
|
|
|
# slogan: Drop-in replacement for Vercel's Nextjs image optimization service.
|
2024-03-06 09:57:39 +00:00
|
|
|
# tags: nextjs,image,transformation,service
|
2024-03-12 19:03:11 +00:00
|
|
|
# port: 3000
|
2024-03-06 09:57:39 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
next-image-transformation:
|
|
|
|
image: ghcr.io/coollabsio/next-image-transformation:latest
|
|
|
|
environment:
|
2024-03-12 19:03:11 +00:00
|
|
|
- SERVICE_FQDN_TRANSFORMATION_3000
|
2024-03-06 09:57:39 +00:00
|
|
|
- NODE_ENV=production
|
|
|
|
- ALLOWED_REMOTE_DOMAINS=${ALLOWED_REMOTE_DOMAINS:-*}
|
|
|
|
- IMGPROXY_URL=${IMGPROXY_URL:-http://imgproxy:8080}
|
|
|
|
healthcheck:
|
2024-05-17 08:11:55 +00:00
|
|
|
test: "wget -qO- http://127.0.0.1:3000/health || exit 1"
|
2024-03-06 09:57:39 +00:00
|
|
|
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:
|
2024-03-06 09:58:08 +00:00
|
|
|
test: ["CMD", "imgproxy", "health"]
|
2024-03-06 09:57:39 +00:00
|
|
|
interval: 2s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|