diff --git a/docker/images/n8n/Dockerfile b/docker/images/n8n/Dockerfile index 8eef2090bc..c6343aedd4 100644 --- a/docker/images/n8n/Dockerfile +++ b/docker/images/n8n/Dockerfile @@ -18,7 +18,4 @@ RUN apk --update add --virtual build-dependencies python build-base ca-certifica WORKDIR /data -COPY docker-entrypoint.sh /usr/local/bin/ -ENTRYPOINT ["docker-entrypoint.sh"] - CMD ["n8n"] diff --git a/docker/images/n8n/README.md b/docker/images/n8n/README.md index 8119d6739d..4c20c68e87 100644 --- a/docker/images/n8n/README.md +++ b/docker/images/n8n/README.md @@ -193,6 +193,25 @@ The following environment variables support file input: - N8N_BASIC_AUTH_USER_FILE +## Setting Timezone + +To define the timezone n8n should use the environment variable `GENERIC_TIMEZONE` can +be set. This gets used to by for example the Cron-Node. +Apart from that can also the timezone of the system be set separately. Which controls what +some scripts and commands return like `> date`. The system timezone can be set via +the environment variable `TZ`. + +Example to use the same timezone for both: +``` +docker run -it --rm \ + --name n8n \ + -p 5678:5678 \ + -e GENERIC_TIMEZONE="Europe/Berlin" \ + -e TZ="Europe/Berlin" \ + n8nio/n8n +``` + + ## Build Docker-Image ``` diff --git a/docker/images/n8n/docker-entrypoint.sh b/docker/images/n8n/docker-entrypoint.sh deleted file mode 100755 index fe4561efb1..0000000000 --- a/docker/images/n8n/docker-entrypoint.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -ln -s "/usr/share/zoneinfo/${GENERIC_TIMEZONE:-America/New_York}" /etc/localtime - -exec "$@"