Docker-compose phoenix postgresql

so should I do something like:

ENTRYPOINT mix ecto.create && mix ecto.migrate

# then
CMD mix phx.server

And what about the “error/warning” logs I received in my above comment, should I be concerned about those? Does this mean that postgres is not started up properly?