From 4bbb7e2b260bfead3ae4dcdfbbe635463ff58975 Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Thu, 4 Jan 2024 09:58:14 +0100 Subject: [PATCH] add docker compose --- Dockerfile | 1 - docker-compose-dev.yml | 14 ++++++++++++++ docker-compose.yml | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 docker-compose-dev.yml create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index afe7b9c..c1382ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,6 @@ WORKDIR /app # Copy only the necessary files into the runtime stage COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages -COPY .env . COPY twitter.py . # Run twitter.py when the container launches diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml new file mode 100644 index 0000000..f732637 --- /dev/null +++ b/docker-compose-dev.yml @@ -0,0 +1,14 @@ +version: "3.8" + +services: + api: + build: + context: . + dockerfile: Dockerfile + environment: + CONSUMER_KEY: "" + CONSUMER_SECRET: "" + ACCESS_TOKEN: "" + ACCESS_TOKEN_SECRET: "" + BEARER_TOKEN: "" + restart: always diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b8c3ffd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3.8" + +services: + smooth-bot: + container_name: check-ports-service + image: ghcr.io/dappnode/smooth-bot:latest + environment: + CONSUMER_KEY: "" + CONSUMER_SECRET: "" + ACCESS_TOKEN: "" + ACCESS_TOKEN_SECRET: "" + BEARER_TOKEN: "" + restart: always