services:
  postgres:
    image: registry.zhirov.kz/postgresql-15.3:alpine-3.18.0-amd64
    container_name: postgres-asterisk
    restart: always
    environment:
      POSTGRES_DB: asterisk
      POSTGRES_USER: asterisk
      POSTGRES_PASSWORD: asterisk
      PGTZ: Europe/Moscow
      TZ: Europe/Moscow
    networks:
      - db_net
    ports:
      - 5432:5432
    volumes:
      - ./volumes-data:/var/lib/postgresql/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro

networks: 
  db_net:
    name: db_net