From 2eb46dad903508627c1420f522f18a3e1e3480b1 Mon Sep 17 00:00:00 2001 From: jokob-sk <96159884+jokob-sk@users.noreply.github.com> Date: Sun, 24 Jul 2022 12:26:34 +1000 Subject: [PATCH] Closer align the examples Closer align the examples with the content of the actual .env and docker-compose file --- dockerfiles/README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/dockerfiles/README.md b/dockerfiles/README.md index 1f4b9f68..632ace12 100644 --- a/dockerfiles/README.md +++ b/dockerfiles/README.md @@ -20,7 +20,7 @@ Big thanks to @Macleykun for help and ## ℹ Usage Network - - You will have to probably run the container on the host network, e.g: `sudo docker run --rm --net=host jokobsk/pi.alert` + - You will have to run the container on the host network, e.g: `sudo docker run --rm --net=host jokobsk/pi.alert` Default Port - The app is accessible on the port `:20211`. @@ -60,22 +60,25 @@ services: volumes: - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db - - ${LOGS_LOCATION}/:/home/pi/pialert/log + - ${LOGS_LOCATION}/tmp:/home/pi/pialert/log environment: - - TZ=Europe/London - - PORT=20211 - - HOST_USER_ID=1000 - - HOST_USER_GID=1000 + - TZ=${TZ} + - PORT=${PORT} + - HOST_USER_ID=${HOST_USER_ID} + - HOST_USER_GID=${HOST_USER_GID} ``` `.env` file ```yaml - +#GLOBAL APP_DATA_LOCATION=/path/to/docker_appdata APP_CONFIG_LOCATION=/path/to/docker_config LOGS_LOCATION=/path/to/docker_logs - +TZ=Europe/Paris +HOST_USER_ID=1000 +HOST_USER_GID=1000 +PORT=20211 ``` To run the container execute: `sudo docker-compose --env-file /path/to/.env up`