Docker-compose phoenix postgresql

I wouldn’t put create / migrate in your Dockerfile. Those are really something you do at runtime, not build time.

I would just docker-compose exec those commands after you up everything beforehand. Or if you were really gung-ho on having that done automatically on every container start you could put it into an entrypoint script but personally I don’t like doing that.