I was able to figure this out. Small mistake, I just forgot to include the networks argument for my localstack image, so my main app container wasn't able to access it. I added:
networks:
- proxynet
to my localstack image and everything worked as it should.