Docker container visible on 2 publics ip same time


Recommended Posts

hi

 

i got 2 internets provider, i got 2 network card eth0 and eth1 

 

here my gateway ISP ip

192.168.1.1 provider 1
192.168.0.1 provider 2

 

How on docker-compose to use the 2 providers on the same time for my containers ?

 

For now only provider 1 is use by docker container

 

here my ocnfig

 

networks:
   websites:
    ipam:
      config:
        - subnet: 172.20.0.0/16
          ip_range: 172.28.5.0/24

 

Regards 

 

++

Edited by ibasaw
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.