When I started the docker environment, encountered the error.

could not translate host name "db" to address: Name or service not known

The latest version of postgres image became 13. To avoid the errors, it’s needed to specify the version tag in docker-compose.yml.

version: '3.8'
services:
  db:
    image: postgres:12.6
    environment:
      POSTGRES_PASSWORD: ******
    volumes:
      - ./postgresql/data:/var/lib/postgresql/data
  web:
  :