dinghy: Docker compose version 2 file format breaks the http proxy

I tried switching to docker compose v2 file format, which has the services indented underneath a services key. It appears that this breaks Dinghy’s ability to expose virtual hosts using the http proxy container.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 25 (12 by maintainers)

Most upvoted comments

Now that I’ve had some time to dig into the problem, I see that this will take some changes in dinghy even once nginx-proxy is fixed. The problem is we want our proxy to automatically work with any container that sets VIRTUAL_HOST, and docker-compose v2 now creates a private network for each app. So our proxy has to configure itself to join those private networks as necessary, so that it can reach the containers.

I think I have an idea on how to make this happen by writing a wrapper -notify script, but I doubt it’ll be accepted into the upstream nginx-proxy project since it’s not really their intended use case. I’ll take a whack at it soon.