Skip to content

Docker-compose timezone #641

@cheatmenot

Description

@cheatmenot
version: "3.7"
services:
  postgres:
    image: postgres:11.5
    container_name: postgres
    environment:
      - TZ=Singapore
      - POSTGRES_USER=alona
      - POSTGRES_PASSWORD=alona
      - POSTGRES_DB=alona
    ports:
      - "5432:5432"

I have tried this docker-compose script above but still the timezone is default.
I run the commands SELECT now(); and SHOW timezone;
Please help, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions