Add screenshot server
This commit is contained in:
parent
c6f869e95f
commit
25865acd44
8 changed files with 1247 additions and 0 deletions
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal 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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue