diff --git a/VoidCat/VoidCat.csproj b/VoidCat/VoidCat.csproj index 9b6c40c..e84b930 100644 --- a/VoidCat/VoidCat.csproj +++ b/VoidCat/VoidCat.csproj @@ -39,6 +39,9 @@ + + docker-compose.yml + Dockerfile diff --git a/VoidCat/appsettings.compose.json b/VoidCat/appsettings.compose.json new file mode 100644 index 0000000..f5852d0 --- /dev/null +++ b/VoidCat/appsettings.compose.json @@ -0,0 +1,23 @@ +{ + "DetailedErrors": true, + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning", + "Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware": "Information" + } + }, + "Settings": { + "CorsOrigins": [ + "http://localhost:8001" + ], + "VirusScanner": { + "ClamAV": { + "Endpoint": "tcp://clamav:3310", + "MaxStreamSize": 100000000000 + } + }, + "Redis": "redis", + "Postgres": "User ID=postgres;Password=postgres;Database=void;Pooling=true;Host=postgres:5432" + } +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6ab79f3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: "3.9" +services: + web: + build: . + ports: + - "8001:80" + volumes: + - "./VoidCat/appsettings.compose.json:/app/appsettings.json:ro" + redis: + image: "redis:alpine" + postgres: + image: "postgres:14.1" + environment: + - "POSTGRES_DB=void" + - "POSTGRES_HOST_AUTH_METHOD=trust" + clamav: + image: "clamav/clamav" \ No newline at end of file