Ir a ngrok.com, hacer login.
Luego modificar el docker-compose.yml y añadir:
ngrok:
image: wernight/ngrok
container_name: "${PROJECT_NAME}_ngrok"
ports:
- '4040:4040' # http://localhost:4040/
environment:
NGROK_PORT: nginx:80
NGROK_AUTH: 'xxxxxxxxxxxxxxx'
NGROK_REGION: 'eu'
links:
- nginx
Donde NGROK_AUTH: xxxxx ha de ser el token que ves cuando haces login en tu cuenta en ngrok.com.
Con esto, a mí ya me funciona en mi local con Docker4Drupal