Add screenshot server

This commit is contained in:
Andras Schmelczer 2026-02-03 19:21:51 +00:00
parent c6f869e95f
commit 25865acd44
8 changed files with 1247 additions and 0 deletions

30
docker-compose.yml Normal file
View file

@ -0,0 +1,30 @@
services:
narrowit:
build: .
ports:
- "8001:8001"
volumes:
- ./data:/data:ro
environment:
OG_SIDECAR_URL: http://og-screenshot:8002
PUBLIC_URL: https://narrowit.schmelczer.dev
depends_on:
og-screenshot:
condition: service_healthy
og-screenshot:
build: ./og-screenshot
environment:
NARROWIT_URL: http://narrowit:8001
CACHE_DIR: /cache
volumes:
- og-cache:/cache
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8002/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
volumes:
og-cache: