services:
  postgres:
    image: 'docker.io/library/postgres:17-alpine'
    container_name: 'gregory-pg'
    environment:
      # if there's already a he/him gregory down the hall, then change it to gregory_it_its, to make sure you know it's gregory, the program, not gregory the he/him down the hall
      # ig if there's an it/its gregory already then they just have to change their name to Its Majesty Queen Henry the Eighth
      # oops sorry it/its gregory down the hall, correction: it just has to changes its name
      POSTGRES_USER: 'gregory'
      POSTGRES_DB: 'gregory'
      POSTGRES_PASSWORD: 'pass'
    volumes:
      - './dev/gregory-pg:/var/lib/postgresql/data'
    ports:
      - '5432:5432'

  pgadmin4:
    image: docker.io/dpage/pgadmin4
    container_name: pgadmin4
    environment:
      PGADMIN_DEFAULT_EMAIL: a@a.aaa
      PGADMIN_DEFAULT_PASSWORD: pass
      PGADMIN_DISABLE_POSTFIX: 1
    volumes:
      - ./dev/pgadmin:/var/lib/pgadmin
    ports:
      - 127.0.0.1:5050:80