This commit is contained in:
splin94@yandex.ru 2023-11-18 21:39:51 +03:00
parent ef04c9ed79
commit 7b82023198
5 changed files with 12 additions and 1 deletions

View File

@ -27,6 +27,10 @@ COPY docker/php/php-prod.ini /usr/local/etc/php/conf.d
COPY start.sh /home/start.sh
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN printf '[Date]\ndate.timezone="%s"\n', $TZ > /usr/local/etc/php/conf.d/tzone.ini
#nginx
ADD docker/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf

View File

@ -23,6 +23,10 @@ COPY code/ /var/www
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN printf '[Date]\ndate.timezone="%s"\n', $TZ > /usr/local/etc/php/conf.d/tzone.ini
# Configure Xdebug
#RUN pecl install xdebug
#RUN docker-php-ext-enable xdebug

View File

@ -67,7 +67,7 @@ return [
|
*/
'timezone' => 'UTC',
'timezone' => 'Europe/Moscow',
/*
|--------------------------------------------------------------------------

Binary file not shown.

3
code/test.php Executable file
View File

@ -0,0 +1,3 @@
<?php
echo date('Y-m-d H:i:s');