From 9291c71678a52fed9c8927c6c1e2e06d7e285ddd Mon Sep 17 00:00:00 2001 From: Nathan Castaldi <71972541+ncastaldi@users.noreply.github.com> Date: Tue, 28 Apr 2026 20:04:06 -0400 Subject: [PATCH] initial reactive resume config --- nodes/heimdall/reactive-resume/compose.yaml | 54 +++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 nodes/heimdall/reactive-resume/compose.yaml diff --git a/nodes/heimdall/reactive-resume/compose.yaml b/nodes/heimdall/reactive-resume/compose.yaml new file mode 100644 index 0000000..92ef5bd --- /dev/null +++ b/nodes/heimdall/reactive-resume/compose.yaml @@ -0,0 +1,54 @@ +services: + postgres: + image: postgres:latest + restart: unless-stopped + environment: + POSTGRES_DB: postgres + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + volumes: + - postgres_data:/var/lib/postgresql + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"] + interval: 10s + timeout: 5s + retries: 10 + + printer: + image: ghcr.io/browserless/chromium:latest + restart: unless-stopped + ports: + - "4000:3000" + environment: + - HEALTH=true + - CONCURRENT=20 + - QUEUED=10 + - TOKEN=${BROWSERLESS_TOKEN} + healthcheck: + test: ["CMD-SHELL", 'curl -fsS "http://localhost:3000/pressure?token=${BROWSERLESS_TOKEN}" > /dev/null'] + interval: 10s + timeout: 5s + retries: 10 + + reactive-resume: + image: amruthpillai/reactive-resume:latest + # image: ghcr.io/amruthpillai/reactive-resume:latest + restart: unless-stopped + ports: + - "3000:3000" + env_file: + - .env + volumes: + # Used when S3 is not configured; keeps uploads persistent + - ./data:/app/data + depends_on: + postgres: + condition: service_healthy + printer: + condition: service_healthy + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] + interval: 30s + timeout: 10s + retries: 3 +