Using a reasonably new version of postgres image (tried 16-alpine), you would get a ``` FATAL: database "myapp" does not exist ``` See https://dev.to/nietzscheson/multiples-postgres-databases-in-one-service-with-docker-compose-4fdf#comment-2fd1m for further discussion and a possible workaround.