Use VPN container as gateway

I have gluetun running in a container and I would like that container to serve as the gateway for other containers. Doing this in Portainer was easy, but I have since completely scraped portainer from my network. Now I’m not sure how to accomplish it in Docker.