Postgres Docker image sometimes fail to start
I'm working on a Python project which uses Docker Compose with a Postgres service. compose/postgresql/Dockerfile: FROM postgres:16.1-bullseye COPY init.sql /docker-entrypoint-initdb.d/init.sql compose/postgresql/init.sql: (basic account setup) -- Create database & user CREATE DATABASE ${POSTGRES_DB}; CREATE USER ${POSTGRES_USER} WITH ENCRYPTED PASSWORD ${POSTGRES_PASSWORD}; --…