Skip to content

Commit

Permalink
switch php and php-cron containers timezone from UTC to Moscow
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Jul 25, 2023
1 parent 583022e commit 9da77ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Binary file added config/php/moscow-localtime
Binary file not shown.
1 change: 1 addition & 0 deletions config/php/moscow-timezone
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Europe/Moscow
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ services:
- ./config/php/xdebug.ini:/etc/php/8.2/mods-available/xdebug.ini
# for monitoring purposes
- ./logs/nginx:/var/log/nginx
# switch timezone from UTC to Moscow
- ./config/php/moscow-timezone:/etc/timezone:ro
- ./config/php/moscow-localtime:/etc/localtime:ro

logging:
driver: json-file
Expand Down Expand Up @@ -130,6 +133,9 @@ services:
- ./config/php/90-php.ini:/etc/php/8.2/cli/conf.d/90-php.ini
# Cronjobs
- ./config/cron/php-cron.cron:/etc/cron.d/tasks:ro
# switch timezone from UTC to Moscow
- ./config/php/moscow-timezone:/etc/timezone:ro
- ./config/php/moscow-localtime:/etc/localtime:ro

logging:
driver: json-file
Expand Down

0 comments on commit 9da77ae

Please sign in to comment.