Those projects are in the same Host? If so, you must to use project naming command from compose.
But be careful with PORTs. To avoid conflicts. Dgraph can get confused with multiple instances for different purposes using the same PORTs. The right thing is for you to change the offset of the Ports.
By doing this you should have a separate compose file with these new ports as well.