From Dev.to
postgres:18 exits right after starting? The data directory moved
If you copy a Compose file from almost any PostgreSQL + Docker tutorial and change the tag to 18, the container stops a few seconds after it starts: $ docker run -d --name pgold -e POSTGRES_PASSWORD=s...
