Make timezone configurable through env variable (#853)

This commit is contained in:
jekkos-t520 committed 2016-09-23 10:38:34 +02:00
1 parent dea8683fd4
commit c695505605
3 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
RUN a2enmod rewrite
RUN docker-php-ext-install mysql mysqli bcmath intl gd sockets
RUN echo "date.timezone = \"UTC\"" > /usr/local/etc/php/conf.d/timezone.ini
RUN echo "date.timezone = \"\${PHP_TIMEZONE}\"" > /usr/local/etc/php/conf.d/timezone.ini
WORKDIR /app
COPY . /app
+1
View File
@@ -11,6 +11,7 @@ web:
volumes:
- /app/uploads
environment:
- PHP_TIMEZONE=UTC
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale
- MYSQL_DB_NAME=ospos
+1
View File
@@ -20,6 +20,7 @@ services:
volumes:
- uploads:/app/uploads
environment:
- PHP_TIMEZONE=UTC
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale
- MYSQL_DB_NAME=ospos