chore(docker): mount local time and timezone to container

Added volume mappings for /etc/localtime and /etc/timezone to ensure
the container uses the host's time and timezone settings.

This prevents time discrepancies in logs and scheduled tasks without
requiring manual timezone configuration inside the image.
This commit is contained in:
kyuuseiryuu 2026-03-24 20:26:14 +09:00
parent 04a347c981
commit cfa59dfb40

View File

@ -3,6 +3,9 @@ services:
build: .
# set up retry times
restart: on-failure:5
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
env_file:
- .env
ports: