πŸ“š Amm0's Manual for "Custom" /app containers (7.22beta+)

you can pass DNS settings by:

services:
 SERVICE_NAME:
   image: alpine:latest
   ...
   dns:
    - 8.8.8.8