diff --git a/back/pialert.py b/back/pialert.py index 3d094186..bc2ef32d 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -20,7 +20,6 @@ from email.mime.text import MIMEText import sys import subprocess import os -import tempfile import re import time import decimal diff --git a/docker-compose.yml b/docker-compose.yml index 3762730c..36febe49 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,9 +9,7 @@ services: volumes: - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config # - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db - - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db - # (optional) map an empty file with the name 'setting_darkmode' if you want to force the dark mode on container rebuilt - - ${APP_DATA_LOCATION}/pialert/db/setting_darkmode:/home/pi/pialert/db/setting_darkmode + - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db # (optional) useful for debugging if you have issues setting up the container - ${LOGS_LOCATION}:/home/pi/pialert/front/log # DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes diff --git a/dockerfiles/README.md b/dockerfiles/README.md index 2e69e0ad..f6523736 100755 --- a/dockerfiles/README.md +++ b/dockerfiles/README.md @@ -45,7 +45,6 @@ docker run -d --rm --network=host \ | :------------- | :------------- |:-------------| | **Required** | `:/home/pi/pialert/config` | Folder which will contain the `pialert.conf` file (see below for details) | | **Required** | `:/home/pi/pialert/db` | Folder which will contain the `pialert.db` file | -|Optional| `:/home/pi/pialert/db/setting_darkmode` | Map an empty file with the name `setting_darkmode` if you want to force the dark mode on container rebuilt | |Optional| `:/home/pi/pialert/front/log` | Logs folder useful for debugging if you have issues setting up the container | |Optional| `:/etc/pihole/pihole-FTL.db` | PiHole's `pihole-FTL.db` database file. Required if you want to use PiHole | |Optional| `:/etc/pihole/dhcp.leases` | PiHole's `dhcp.leases` file. Required if you want to use PiHole | @@ -99,9 +98,7 @@ services: restart: unless-stopped volumes: - local/path/pialert/config:/home/pi/pialert/config - - local/path/pialert/db:/home/pi/pialert/db - # (optional) map an empty file with the name 'setting_darkmode' if you want to force the dark mode on container rebuilt - - local/path/pialert/db/setting_darkmode:/home/pi/pialert/db/setting_darkmode + - local/path/pialert/db:/home/pi/pialert/db # (optional) useful for debugging if you have issues setting up the container - local/path/logs:/home/pi/pialert/front/log environment: @@ -127,9 +124,7 @@ services: restart: unless-stopped volumes: - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config - - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db - # (optional) map an empty file with the name 'setting_darkmode' if you want to force the dark mode on container rebuilt - - ${APP_DATA_LOCATION}/pialert/db/setting_darkmode:/home/pi/pialert/db/setting_darkmode + - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db # (optional) useful for debugging if you have issues setting up the container - ${LOGS_LOCATION}:/home/pi/pialert/front/log environment: