p:: Docker Compose, PostgreSQL, Docker https://hub.docker.com/_/postgres vim docker-compose.yml services: postgres: image: postgres:16.3 ports: - "54321:5432" environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres volumes: - ./docker/postgresql/data:/var/lib/postgresql/data vim docker-compose.yml services: postgres: image: postgres:16.3 ports: - "5432:5432" environment: POSTGRES_USER: ${WHOAMI} # POSTGRES_PASSWORD: postgres POSTGRES_HOST_AUTH_METHOD: trust volumes: - ./docker/postgresql/data:/var/lib/postgresql/data export WHOAMI=$(whoami) docker-compose up