Poller: the container (one run every 5 minutes), README and production steps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-24 16:51:29 +01:00
1 parent 51b02e426d
commit d80b6face8
5 files changed
+78

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
# The poller (poller/poll.py): standard library only, nothing to install. Built from the repository root (it reads
# LibreDesk through conversations/pomper.py). Version pinned like acces/Dockerfile (2026-11-18).
FROM python:3.12.8-slim-bookworm
WORKDIR /app
COPY conversations/ /app/conversations/
COPY poller/ /app/poller/
USER nobody
CMD ["python", "-u", "-m", "poller.poll", "--every", "300"]
+16
View File
@@ -0,0 +1,16 @@
# The poller: the LibreDesk conversations copied into Supabase every 5 minutes (poller/poll.py). No port published.
# - poller/.env (outside git, never read by Claude): LIBREDESK_API_KEY, LIBREDESK_API_SECRET (the read key of LibreDesk),
# SUPABASE_CONVERSATIONS_URL, SUPABASE_CONVERSATIONS_KEY (the service_role key of the Conversations project), and
# LIBREDESK_URL if it is not the production (https://helpdesk.sensima.ch);
# docker compose -f poller/compose.yml up -d --build
# One run by hand (the first one, over the whole history, at a quiet hour):
# docker compose -f poller/compose.yml run --rm poller python -u -m poller.poll
services:
poller:
build:
context: ..
dockerfile: poller/Dockerfile
image: libredesk-poller:1
container_name: libredesk-poller
restart: unless-stopped
env_file: .env