DOTNET_USE_POLLING_FILE_WATCHER

This commit is contained in:
Mikhail Trubnikov
2023-08-28 08:54:00 +10:00
parent d34ac8cab4
commit 04e4122ffc
4 changed files with 56 additions and 1 deletions

View File

@@ -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

View File

@@ -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 ###

View File

@@ -10,7 +10,9 @@
</PropertyGroup>
<ItemGroup>
<None Include="docker-compose.aihit-syncher.yml" />
<None Include="docker-compose.espp-template-sync.yml" />
<None Include="docker-compose.yml" />
<None Include=".dockerignore" />
<None Include="stack.yml" />
</ItemGroup>
</Project>

51
stack.yml Normal file
View File

@@ -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