added docker compose

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-01-06 09:30:10 -07:00
parent 0b05315671
commit 69cfac1c6f
4 changed files with 20 additions and 10 deletions

View File

@@ -9,8 +9,8 @@ Because nobody should have to deal with a homemade spreadsheet or a shoebox full
1. Install Docker
2. Clone this repo
3. Run `docker build -t lubelog .`
4. Run `docker run -d -p 80:5000 --name lubelog lubelog`
1. Optionally, you can mount a volume to the container to persist data. For example, `docker run -d -p 80:5000 -v /path/to/data:/app/data --name lubelog lubelog`
4. CHECK docker-compose.yaml and make sure the mounting directories look correct.
5. Run `docker-compose up`
## Dependencies
- Bootstrap

View File

@@ -16,7 +16,7 @@
</div>
<div class="form-check form-switch">
<input class="form-check-input" onChange="updateSettings()" type="checkbox" role="switch" id="useMPG" checked="@Model.UseMPG">
<label class="form-check-label" for="useMPG">Use Imperial Calculation for Fuel Economy Calculations(MPG)<small class="text-body-secondary">Will also change units to miles and gallons</small></label>
<label class="form-check-label" for="useMPG">Use Imperial Calculation for Fuel Economy Calculations(MPG)<br /><small class="text-body-secondary">This Will Also Change Units to Miles and Gallons</small></label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" onChange="updateSettings()" type="checkbox" role="switch" id="usekWh" checked="@Model.UsekWh">

View File

@@ -5,13 +5,6 @@
"Microsoft.AspNetCore": "Warning"
}
},
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://0.0.0.0:5000"
}
}
},
"AllowedHosts": "*",
"UseDarkMode": false,
"EnableCsvImports": true,

17
docker-compose.yaml Normal file
View File

@@ -0,0 +1,17 @@
version: "3.7"
services:
lubelogger:
container_name: "lubelogger"
image: "lubelogger:latest"
ports:
- "8080:8080"
volumes:
- source: C:\lubelogger\data
target: /App/data
type: bind
- source: C:\lubelogger\images
target: /App/wwwroot/images
type: bind
- source: C:\lubelogger\documents
target: /App/wwwroot/documents
type: bind