Posgresql docker doesn't honour POSTGRES_LISTEN_ADDRESSES

This is my docker-compose file.
I"m using the official postgres 16.1 docker image and a custom DIR for the DATA directory.
THis DATA directory is actually a volume mount .
I want postgres to start with the the listen address as “POSTGRES-1” but by default its ’ * '.
THe config i’ve done below, doens’t seem to work.

what could i be doing wrong.?

version: '3.4'
services:
  vadm_postgres:
    image: vadm_pg
    container_name: vadm-postgresfast
    hostname: VADM-DB-0
    stop_grace_period: 60s
    cap_add:
    - SYS_RAWIO
    - SYS_ADMIN
    #networks:
    #  docker1A:
    #    ipv4_address: 147.178.42.180
    #    ipv6_address: fd00:0001:0002:0003::2ab4
    #  docker2A:
    #    ipv4_address: 147.178.43.180
    #    ipv6_address: fd00:0001:0002:0003::2bb4
    environment:
      - CONTAINER_NAME=POSTGRES
      - HOST_ETH0_IPv4=147.188.42.179
      - POSTGRES_DB=VADB
      - POSTGRES_LISTEN_ADDRESSES='POSTGRES-1'   <---This doesnt seem to work
    volumes:
    - ./sampleDB:/shared/vvol/db/pgsql_data_5432
    healthcheck:
      test: ["CMD-SHELL","pg_isready -U postgres"]
      interval: 5s
      retries: 3
      timeout: 5s

Can you share a link to a documentation which shows that environment variable as supported? I couldn’t find it.

I also don’t know the image you are using I have no idea what it should support. Postgres in container from the official image however listens on all interfaces and you just have to configure from what host it allows you to connect.

https://github.com/docker-library/docs/blob/master/postgres/README.md#postgres_host_auth_method