Add docker-compose.yml setup

This commit is contained in:
Kieran 2022-06-15 21:53:52 +01:00
parent fc56aa8336
commit ffa540f8fd
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 43 additions and 0 deletions

View File

@ -39,6 +39,9 @@
<!-- Don't publish the SPA source files, but do show them in the project files list --> <!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove="$(SpaRoot)**" /> <Content Remove="$(SpaRoot)**" />
<Content Include="$(SolutionDir).github\workflows\build.yml" /> <Content Include="$(SolutionDir).github\workflows\build.yml" />
<Content Include="..\docker-compose.yml">
<Link>docker-compose.yml</Link>
</Content>
<Content Include="..\Dockerfile"> <Content Include="..\Dockerfile">
<Link>Dockerfile</Link> <Link>Dockerfile</Link>
</Content> </Content>

View File

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

17
docker-compose.yml Normal file
View File

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