From 90ae53a95daf9fe98e05e5ad4ed0e28155b26cf0 Mon Sep 17 00:00:00 2001 From: paprykdev <58005447+paprykdev@users.noreply.github.com> Date: Thu, 14 Nov 2024 03:38:02 +0100 Subject: [PATCH] refactor: reorganize Docker-related files and update docker-compose configuration --- .dockerignore => app/.dockerignore | 2 +- docker-compose.yaml => app/docker-compose.yaml | 17 +++++++---------- app/{ => docker/scripts}/Dockerfile | 0 3 files changed, 8 insertions(+), 11 deletions(-) rename .dockerignore => app/.dockerignore (77%) rename docker-compose.yaml => app/docker-compose.yaml (57%) rename app/{ => docker/scripts}/Dockerfile (100%) diff --git a/.dockerignore b/app/.dockerignore similarity index 77% rename from .dockerignore rename to app/.dockerignore index 1429109..b7f5930 100644 --- a/.dockerignore +++ b/app/.dockerignore @@ -17,7 +17,7 @@ logs/ # Ignore Docker files Dockerfile -docker-compose.yml +docker-compose.yaml # Ignore build directories dist/ diff --git a/docker-compose.yaml b/app/docker-compose.yaml similarity index 57% rename from docker-compose.yaml rename to app/docker-compose.yaml index ac3339d..6491ba7 100644 --- a/docker-compose.yaml +++ b/app/docker-compose.yaml @@ -1,18 +1,15 @@ services: webscraper: build: - context: ./app + context: . + dockerfile: ./docker/scripts/Dockerfile container_name: webscraper volumes: - - ./app:/usr/src/app - develop: - watch: - - path: ./app/requirements.txt - action: rebuild - - path: ./app - target: /usr/src/app - action: sync+restart - command: tail -f /dev/null + - .:/usr/src/app + command: + - tail + - -f + - /dev/null selenium-hub: image: "selenium/hub:3.141.59" container_name: selenium-hub diff --git a/app/Dockerfile b/app/docker/scripts/Dockerfile similarity index 100% rename from app/Dockerfile rename to app/docker/scripts/Dockerfile