# docker compose -p dbs -f ./dbSer/dbs.networks.set.yml -f ./dbSer/postgres.yml pull
# docker compose -p dbs -f ./dbSer/dbs.networks.set.yml -f ./dbSer/postgres.yml up -d
services:

  postgres:
    image: postgres:16.2-bookworm
    container_name: Dev-postgre
    restart: always
    environment:
      - POSTGRES_PASSWORD=Kevin%0412
      - POSTGRES_HOST_AUTH_METHOD=scram-sha-256
      - POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
      - TZ=Asia/Shanghai
    volumes:
      - postgresql_data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
    networks:
      DevNet:
        ipv4_address: 172.22.10.208

volumes:
  postgresql_data: