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
|
FROM node:20-alpine AS runner
|
||||||
|
|
||||||
# Install dumb-init for proper signal handling and Docker CLI for restart capability
|
# 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
|
RUN apk add --no-cache dumb-init docker-cli tzdata
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3001:3000"
|
- "3001:3000"
|
||||||
environment:
|
environment:
|
||||||
|
# Timezone
|
||||||
|
TZ: Europe/Berlin
|
||||||
|
|
||||||
# Node environment
|
# Node environment
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
PORT: 3000
|
PORT: 3000
|
||||||
@@ -96,6 +99,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
|
TZ: Europe/Berlin
|
||||||
POSTGRES_DB: trading_bot_v4
|
POSTGRES_DB: trading_bot_v4
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||||
|
|||||||
Reference in New Issue
Block a user