add timezone to params, default UTC in container

This commit is contained in:
Asif Bacchus 2019-10-18 01:32:48 -06:00
parent 5b89659c0f
commit d6e49f4d09
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,13 @@
##### #####
### Timezone
# This doesn't impact any functionality of the container, but it does make your
# logs easier to understand if they report the correct local time, right?
# (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
TZ=Area/Location
### NGINX options ### NGINX options
# Hostnames to which this instance of NGINX should answer: # Hostnames to which this instance of NGINX should answer:
# By default, this is set to '_' meaning 'match anything'. However, that won't # By default, this is set to '_' meaning 'match anything'. However, that won't

View File

@ -31,6 +31,7 @@ COPY webroot /usr/share/nginx/html/
EXPOSE 80 443 EXPOSE 80 443
# default environment variables # default environment variables
ENV TZ=Etc/UTC
ENV SERVER_NAMES="_" ENV SERVER_NAMES="_"
ENV HTTP_PORT=80 ENV HTTP_PORT=80
ENV HTTPS_PORT=443 ENV HTTPS_PORT=443