mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-09-20 03:01:33 +02:00
Add docker-compose.yml
setup
This commit is contained in:
@@ -39,6 +39,9 @@
|
||||
<!-- Don't publish the SPA source files, but do show them in the project files list -->
|
||||
<Content Remove="$(SpaRoot)**" />
|
||||
<Content Include="$(SolutionDir).github\workflows\build.yml" />
|
||||
<Content Include="..\docker-compose.yml">
|
||||
<Link>docker-compose.yml</Link>
|
||||
</Content>
|
||||
<Content Include="..\Dockerfile">
|
||||
<Link>Dockerfile</Link>
|
||||
</Content>
|
||||
|
23
VoidCat/appsettings.compose.json
Normal file
23
VoidCat/appsettings.compose.json
Normal 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
17
docker-compose.yml
Normal 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"
|
Reference in New Issue
Block a user