From 04e4122ffc81ba396c9979fc3f0a6c6e18bccb86 Mon Sep 17 00:00:00 2001 From: Mikhail Trubnikov Date: Mon, 28 Aug 2023 08:54:00 +1000 Subject: [PATCH] DOTNET_USE_POLLING_FILE_WATCHER --- PARR.API.sln | 1 - PARR.EsppTemplateSyncWorker/Dockerfile | 3 ++ docker-compose.dcproj | 2 + stack.yml | 51 ++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 stack.yml diff --git a/PARR.API.sln b/PARR.API.sln index 099c900c..6077f09c 100644 --- a/PARR.API.sln +++ b/PARR.API.sln @@ -56,7 +56,6 @@ Global {3ED4E1CE-2AF5-4EB3-B7DF-B77CCC242B9E}.Release|Any CPU.Build.0 = Release|Any CPU {AB278172-BFB4-4D54-9022-2D2A5B3338D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {AB278172-BFB4-4D54-9022-2D2A5B3338D7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AB278172-BFB4-4D54-9022-2D2A5B3338D7}.Release|Any CPU.Build.0 = Release|Any CPU {7BAB9170-743D-4542-8881-9B161EE81BB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7BAB9170-743D-4542-8881-9B161EE81BB6}.Debug|Any CPU.Build.0 = Debug|Any CPU {7BAB9170-743D-4542-8881-9B161EE81BB6}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/PARR.EsppTemplateSyncWorker/Dockerfile b/PARR.EsppTemplateSyncWorker/Dockerfile index 3ab13228..43b37414 100644 --- a/PARR.EsppTemplateSyncWorker/Dockerfile +++ b/PARR.EsppTemplateSyncWorker/Dockerfile @@ -22,6 +22,9 @@ RUN dotnet publish "PARR.EsppTemplateSyncWorker.csproj" -c Release -o /app/publi FROM base AS final WORKDIR /app COPY --from=publish /app/publish . + +ENV DOTNET_USE_POLLING_FILE_WATCHER=true + ENTRYPOINT ["dotnet", "PARR.EsppTemplateSyncWorker.dll"] ### EXAMPLE ### diff --git a/docker-compose.dcproj b/docker-compose.dcproj index 754dcc9c..34f71119 100644 --- a/docker-compose.dcproj +++ b/docker-compose.dcproj @@ -10,7 +10,9 @@ + + \ No newline at end of file diff --git a/stack.yml b/stack.yml new file mode 100644 index 00000000..df065c73 --- /dev/null +++ b/stack.yml @@ -0,0 +1,51 @@ +version: "3.4" + +services: + parr-espp-template-sync: + image: 10.99.253.167:8090/parr/parr-espp-template-sync:${tag:-latest} + container_name: parr-espp-template-sync + restart: always + environment: + - ASPNETCORE_ENVIRONMENT=Production + - TZ=Europe/Moscow + volumes: + - /var/log/parr-espp-template-sync:/app/log + - parr_storage_dev:/app/Data + deploy: + replicas: 1 + + +volumes: + parr_storage_dev: + name: parr_storage_dev + driver: local + driver_opts: + type: cifs + o: "addr=dvgd-appfs-01,username=parruserdev,password=P@ssDevParr202MM" + device: //dvgd-appfs-01/parr_storage_dev + + + # # --- NGINX --- + # nginx-2: + # image: nginx:latest + # ports: + # - '8089:80' + # deploy: + # replicas: 5 + # update_config: + # parallelism: 2 + # order: start-first + # failure_action: rollback + # delay: 5s + # rollback_config: + # parallelism: 0 + # order: stop-first + # restart_policy: + # condition: any + # delay: 5s + # max_attempts: 3 + # window: 120s + # healthcheck: + # test: ["CMD", "service", "nginx", "status"] + # networks: + # - nginx-2 \ No newline at end of file