diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..af92547 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +build-docker: + docker build . -f ./scrapper/docker/Dockerfile -t metonymy/scrapper +upload-docker: build-docker + docker push metonymy/scrapper \ No newline at end of file diff --git a/scrapper/docker/Dockerfile b/scrapper/docker/Dockerfile index 83d3b26..16050ba 100644 --- a/scrapper/docker/Dockerfile +++ b/scrapper/docker/Dockerfile @@ -26,4 +26,4 @@ WORKDIR /app COPY --from=builder /app/target/release/scrapper /app/scrapper -ENTRYPOINT /app/scrapper \ No newline at end of file +ENTRYPOINT ["/app/scrapper"] \ No newline at end of file diff --git a/synology/docker-compose.yaml b/synology/docker-compose.yaml new file mode 100644 index 0000000..3ca4ee5 --- /dev/null +++ b/synology/docker-compose.yaml @@ -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" diff --git a/synology/readme.md b/synology/readme.md new file mode 100644 index 0000000..5786f4e --- /dev/null +++ b/synology/readme.md @@ -0,0 +1,4 @@ +# Synology + +The synology folder contains files that are meant for deployment purposes on the Synology NAS +using the Container Manager. \ No newline at end of file