docker-compose 修改容器时区

方法1

environment:
  TZ: Asia/Shanghai
 
或者
environment:
  - TZ: Asia/Shanghai

方法2

environment:
  - SET_CONTAINER_TIMEZONE=true
  - CONTAINER_TIMEZONE=Asia/Shanghai
#或者这样写
environment:
  SET_CONTAINER_TIMEZONE: true
  CONTAINER_TIMEZONE: Asia/Shanghai