I am searching for a compose configuration, but I didn’t found, what I was looking for:
I want 2 containers, lets say an app and its database. The app container must have network access to the host network (i.e. host as network_mode) and access to the database container (e.g. via bridge as network_mode). Currently, my database container exposes its port to the host, where the app container is able to connect, but I consider this as a workaround/dirty hack.
What would be an alternative configuration?