my-kaiqiuwang/docker-compose.yml
kyuuseiryuu cfa59dfb40 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.
2026-03-24 20:26:14 +09:00

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