diff --git a/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js b/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js index b48b140..162bdd0 100644 --- a/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js +++ b/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js @@ -24,7 +24,6 @@ function CreateChart(ctx, temp, humidity) { const config = { type: 'line', data: data, - options: { maintainAspectRatio: true } options: { maintainAspectRatio: true, scales: { diff --git a/docker-compose.yml b/docker-compose.yml index f76b348..29f25e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,8 @@ services: database: image: mongo:latest + volumes: + - "db-data:/data/db" apiserver: image: registry.jacknet.io/51m0n/environment-api:latest @@ -29,4 +31,5 @@ services: depends_on: - apiserver - frontend - \ No newline at end of file +volumes: + db-data: \ No newline at end of file