I want to use two service in docker-compose.yml: frontend and backend, the first one is nginx and the orther is an asp.net application, both based-on window images. frontend and backend must be on the same network which is marked as "internal" (so that backend can only communicate with the front), but front end can still access the internet. Howerver, in windows container the internal: true property as well as bridge network are not supported, how can i archive this?
the .yml file that should would on linux container but not on windows container:
version: "3.8"
services:
frontend:
build: "./proxy"
depends_on:
- backend
ports:
- "8080:4000"
networks:
- internal_network
- out_network
backend:
build: "./webapp"
expose:
- "80"
networks:
- internal_network
networks:
internal_network:
internal: true
out_network: {}
Tried which orther network driver like l2bridge but still not succeed yet