0

I am trying to link my application container to my DB container when sending the JSON task description to the Marathon framework.

I've read up on this question from last year: Linked Docker Containers with Mesos/Marathon

The question is: I know Fig will be able to help me with this but I just wanna know if there is a way to link them on the Marathon framework? HAProxy might work?

Community
  • 1
  • 1
Hans
  • 451
  • 1
  • 6
  • 20

1 Answers1

2

If you want to link two containers, they have to run on the same host. Marathon currently does not support that. To me it sounds like you don't really need that. Instead you could just use service discovery mechanisms to make your db accessible to the other service. For this you can use haproxy, or try mesos-dns.

drexin
  • 24,225
  • 4
  • 67
  • 81