Error image docker strapi|

I wanted to connect to a local database but external to the image and with the configuration I couldn’t, but I solved it by using DATABASE_HOST: host.docker.internal.