From 62c82d933c54831b08e88af9321248b465e51eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20Emir=20Cabaro=C4=9Flu?= Date: Sat, 6 Feb 2021 00:11:13 +0300 Subject: [PATCH 1/2] remove copy command in development dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9b39a07..54d17c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,5 +15,5 @@ RUN apt-get update && apt-get install -y \ COPY requirements.txt requirements.txt RUN pip install -r requirements.txt EXPOSE 5000 -COPY . . + CMD ["flask", "run","--debugger"] \ No newline at end of file From a1a11b2dd42c828c45ac38b2ec0cdb9488f71cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20Emir=20Cabaro=C4=9Flu?= Date: Sat, 6 Feb 2021 00:12:41 +0300 Subject: [PATCH 2/2] update mongo data mount point to volume --- docker-compose-dev.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docker-compose-dev.yaml b/docker-compose-dev.yaml index 895fc5f..3478dff 100644 --- a/docker-compose-dev.yaml +++ b/docker-compose-dev.yaml @@ -1,16 +1,16 @@ -version: "3.3" +version: "3" + services: mongo: image: mongo - restart: always environment: MONGO_INITDB_ROOT_USERNAME: xcoder MONGO_INITDB_ROOT_PASSWORD: 4dun4710 volumes: - - ./mongo_data_dir/:/data/db/ + - mongo_data:/data/db/ + mongo-express: image: mongo-express - restart: always ports: - 8081:8081 environment: @@ -19,13 +19,16 @@ services: ME_CONFIG_OPTIONS_EDITORTHEME: ambiance ME_CONFIG_BASICAUTH_USERNAME: xcoder ME_CONFIG_BASICAUTH_PASSWORD: 4dun4710 + web: build: . - ports: - - "5000:5000" + - 5000:5000 environment: ADUNATIO_PRIV_KEY: /code/privkey.pem FLASK_DEBUG: 1 volumes: - .:/code + +volumes: + mongo_data: \ No newline at end of file