feat: add Berlin timezone support to containers
- Add tzdata package to Dockerfile runner stage - Set TZ=Europe/Berlin in docker-compose.yml for both trading-bot and postgres - All container timestamps now show CET instead of UTC - User-friendly log times matching local time Files changed: - Dockerfile: Added tzdata to runner stage - docker-compose.yml: Added TZ environment variable
This commit is contained in:
@@ -58,8 +58,8 @@ RUN npm run build
|
||||
# ================================
|
||||
FROM node:20-alpine AS runner
|
||||
|
||||
# Install dumb-init for proper signal handling and Docker CLI for restart capability
|
||||
RUN apk add --no-cache dumb-init docker-cli
|
||||
# Install dumb-init for proper signal handling, Docker CLI for restart capability, and tzdata for timezone support
|
||||
RUN apk add --no-cache dumb-init docker-cli tzdata
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ services:
|
||||
ports:
|
||||
- "3001:3000"
|
||||
environment:
|
||||
# Timezone
|
||||
TZ: Europe/Berlin
|
||||
|
||||
# Node environment
|
||||
NODE_ENV: production
|
||||
PORT: 3000
|
||||
@@ -96,6 +99,7 @@ services:
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
TZ: Europe/Berlin
|
||||
POSTGRES_DB: trading_bot_v4
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||
|
||||
Reference in New Issue
Block a user