diff --git a/MalwareMultiScan.Shared/Extensions/ServiceCollectionExtensions.cs b/MalwareMultiScan.Shared/Extensions/ServiceCollectionExtensions.cs index bcd67ac..d3c5715 100644 --- a/MalwareMultiScan.Shared/Extensions/ServiceCollectionExtensions.cs +++ b/MalwareMultiScan.Shared/Extensions/ServiceCollectionExtensions.cs @@ -23,6 +23,7 @@ namespace MalwareMultiScan.Shared.Extensions services.AddSingleton(new ConsulClient(config => { config.Address = configuration.GetValue("CONSUL_ADDRESS"); + config.WaitTime = TimeSpan.FromSeconds(120); })); } diff --git a/MalwareMultiScan.Ui/models/scan-result-status.ts b/MalwareMultiScan.Ui/models/scan-result-status.ts new file mode 100644 index 0000000..c8a6e07 --- /dev/null +++ b/MalwareMultiScan.Ui/models/scan-result-status.ts @@ -0,0 +1,6 @@ +export enum ScanResultStatus +{ + Queued, + Succeeded, + Failed +} \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index fbfe938..1b73f3e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,12 +13,12 @@ services: volumes: - mongodb:/data + # See https://github.com/hashicorp/consul/blob/master/demo/docker-compose-cluster/docker-compose.yml + # for a production-ready config. consul: image: consul:1.8 restart: on-failure - volumes: - - consul:/consul/data - command: consul agent -server -bootstrap -client 0.0.0.0 + command: consul agent -dev -log-level=info -bind=0.0.0.0 -client=0.0.0.0 ui: image: mindcollapse/malware-multi-scan-ui @@ -153,5 +153,4 @@ services: volumes: mongodb: - redis: - consul: \ No newline at end of file + redis: \ No newline at end of file