Having multiple compose projects separated with different networks

Hi

My scenario is this:

                       TRUNK VLAN873 & VLAN1553
                                   |
                              172.16.0.0/24
                              Docker-Host
                                   |
                 192.168.1.0/24           192.168.2.0/24
                    VLAN873                 VLAN1553
                 Container 1       |        Container1
                 Container 2       |        Container2
                 Container 3       |        Container3

Is to possible to have each group of containers running on its own VLAN and at the same time have other hosts in the same VLAN have full connectivity?

I’ve experimented with using the macvlan driver but i cannot seem to get it to work. I have full connectivity between containers in the same VLAN but other hosts/clients that also are in the same VLAN cannot communicate with the containers.