forked from Kieran/void.cat
Add docker-compose.yml
setup
This commit is contained in:
parent
fc56aa8336
commit
ffa540f8fd
@ -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"
|
Loading…
Reference in New Issue
Block a user