From 228a2f3acab57009ed27c1b10f7d932be7a93ffe Mon Sep 17 00:00:00 2001 From: Anuj Verma <42962743+Ashes47@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:40:13 +0530 Subject: [PATCH 1/2] Create docker-compose.yaml --- docker-compose.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..70c7fe6 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,18 @@ +version: '3.8' + +services: + reader: + build: + context: . + dockerfile: Dockerfile + ports: + - "3000:3000" + volumes: + - screenshots:/app/screenshots + environment: + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true" + PUPPETEER_EXECUTABLE_PATH: "/usr/bin/google-chrome-stable" + command: node build/server.js + +volumes: + screenshots: From 4c24f3b810705a574af22f0882233c82f490f83c Mon Sep 17 00:00:00 2001 From: Ashes47 Date: Mon, 30 Sep 2024 19:44:26 +0530 Subject: [PATCH 2/2] add screenshots --- docker-compose.yaml | 5 +---- screenshots/.gitkeep | 0 2 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 screenshots/.gitkeep diff --git a/docker-compose.yaml b/docker-compose.yaml index 70c7fe6..8ac2485 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,11 +8,8 @@ services: ports: - "3000:3000" volumes: - - screenshots:/app/screenshots + - ./screenshots:/app/screenshots environment: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true" PUPPETEER_EXECUTABLE_PATH: "/usr/bin/google-chrome-stable" command: node build/server.js - -volumes: - screenshots: diff --git a/screenshots/.gitkeep b/screenshots/.gitkeep new file mode 100644 index 0000000..e69de29