I'm using Alpine Linux as a base for my containers, so no iptables for me, and I would rather not have to add it only for that.
I found this answer: https://stackoverflow.com/a/42336592/1326863 that tells that it is possible to disable internet in a docker's network, but is it possible to do it in docker-compose configuration?