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:
parent
04a347c981
commit
cfa59dfb40
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user