diff --git a/.env b/.env
new file mode 100644
index 0000000..95605b0
--- /dev/null
+++ b/.env
@@ -0,0 +1,2 @@
+LC_ALL=en_US.UTF-8
+LANG=en_US.UTF-8
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index 7a218cc..42b2509 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,6 +9,4 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /App
COPY --from=build-env /App/out .
EXPOSE 8080
-ENV LC_ALL=en_US.UTF-8 \
- LANG=en_US.UTF-8
CMD ["./CarCareTracker"]
\ No newline at end of file
diff --git a/Views/Vehicle/_Gas.cshtml b/Views/Vehicle/_Gas.cshtml
index e9bbb1b..7bcd2c9 100644
--- a/Views/Vehicle/_Gas.cshtml
+++ b/Views/Vehicle/_Gas.cshtml
@@ -27,7 +27,7 @@
@($"Max Fuel Economy: {Model.Max(x => x.MilesPerGallon).ToString("F") ?? "0"}")
}
@($"Total Fuel Consumed: {Model.Sum(x=>x.Gallons).ToString("F")}")
- @($"Total Cost: {Model.Sum(x => x.Cost).ToString("C")}")
+ @($"Total Cost: {Model.Sum(x => x.Cost).ToString("C3")}")
@if (enableCsvImports)
{
@@ -66,8 +66,8 @@
@gasRecord.Mileage |
@gasRecord.Gallons.ToString("F") |
@(gasRecord.MilesPerGallon == 0 ? "---" : gasRecord.MilesPerGallon.ToString("F")) |
- @gasRecord.Cost.ToString("C") |
- @gasRecord.CostPerGallon.ToString("C") |
+ @gasRecord.Cost.ToString("C3") |
+ @gasRecord.CostPerGallon.ToString("C3") |
}
diff --git a/docker-compose.traefik.yml b/docker-compose.traefik.yml
index 2307174..882ad99 100644
--- a/docker-compose.traefik.yml
+++ b/docker-compose.traefik.yml
@@ -16,6 +16,8 @@ services:
# expose port and/or use serving via traefik
ports:
- 8080:8080
+ env_file:
+ - .env
# traefik configurations, including networks can be commented out if not needed
networks:
- traefik-ingress
diff --git a/docker-compose.yml b/docker-compose.yml
index 1490ad8..81df8a7 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -16,10 +16,17 @@ services:
# expose port and/or use serving via traefik
ports:
- 8080:8080
+ env_file:
+ - .env
volumes:
config:
+ external: true
data:
+ external: true
documents:
+ external: true
images:
+ external: true
log:
+ external: true