From 2b1750cae23487d03fdcc786c127732596a0f615 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Wed, 1 Jan 2025 16:19:03 +0200 Subject: [PATCH] add bluesky bot deployment file --- Makefile | 10 +++++++--- synology/docker-compose.yaml | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index af92547..ebb4ea6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ -build-docker: +build-scraper-docker: docker build . -f ./scrapper/docker/Dockerfile -t metonymy/scrapper -upload-docker: build-docker - docker push metonymy/scrapper \ No newline at end of file +upload-scraper-docker: build-scraper-docker + docker push metonymy/scrapper +build-bot-docker: + docker build . -f ./bot/docker/Dockerfile -t metonymy/bot +upload-bot-docker: build-bot-docker + docker push metonymy/bot \ No newline at end of file diff --git a/synology/docker-compose.yaml b/synology/docker-compose.yaml index 0da5563..b07a4bc 100644 --- a/synology/docker-compose.yaml +++ b/synology/docker-compose.yaml @@ -10,3 +10,21 @@ services: - "redis://192.168.0.221:6379" - "--redis-stream-name" - "posts::g4media" + bot: + container_name: bluesky-bot + image: metonymy/bot + environment: + RUST_LOG: info + command: + - "--redis-connection-string" + - "redis://192.168.0.221:6379" + - "--redis-stream-name" + - "posts::g4media" + - "--redis-consumer-group" + - "bluesky-bot-nas" + - "--redis-consumer-name" + - "bot-1" + - "--bluesky-handle" + - "REPLACE-ME" + - "--bluesky-password" + - "REPLACE-ME" \ No newline at end of file