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.
13 lines
230 B
YAML
13 lines
230 B
YAML
services:
|
|
app:
|
|
build: .
|
|
# set up retry times
|
|
restart: on-failure:5
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- 3005:3000
|