add docker-compose.yaml for synology deployment

This commit is contained in:
Denis-Cosmin Nutiu 2024-12-26 19:02:51 +02:00
parent 904b45659a
commit e4c2752335
4 changed files with 20 additions and 1 deletions

4
Makefile Normal file
View file

@ -0,0 +1,4 @@
build-docker:
docker build . -f ./scrapper/docker/Dockerfile -t metonymy/scrapper
upload-docker: build-docker
docker push metonymy/scrapper

View file

@ -26,4 +26,4 @@ WORKDIR /app
COPY --from=builder /app/target/release/scrapper /app/scrapper COPY --from=builder /app/target/release/scrapper /app/scrapper
ENTRYPOINT /app/scrapper ENTRYPOINT ["/app/scrapper"]

View file

@ -0,0 +1,11 @@
version: '3.8'
services:
scraper:
image: metonymy/scrapper
environment:
RUST_LOG: info
command:
- "--redis-connection-string"
- "redis://192.168.0.221:6379"
- "--redis-stream-name"
- "posts::g4media"

4
synology/readme.md Normal file
View file

@ -0,0 +1,4 @@
# Synology
The synology folder contains files that are meant for deployment purposes on the Synology NAS
using the Container Manager.