Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich besitze 2 Server und möchte mit docker-swarm eine Redundanz zwischen den beiden servern herstellen.

Server A hat drei IP Adressen und Server B hat eine IP Adresse.

Auf Server A soll mein reverseproxy den Port 80 der von IP A und IP B auf Port 80 des Containers mappen.

Allerdings soll IP C nicht gemapped werden.

docker-compose file:

[...]
    ports:
      - "IPa:80:80"
      - "IPb:80:80"
[...]

Wie löse ich nun das Problem das Server B versuchen wird die Ports zweier IPs zu mappen, die ihm nicht zugewiesen sind?

 

 

Hallo,

das wird wohl generell nicht so funktionieren. Im swarm mode kann man keine IPs angeben (siehe https://github.com/moby/moby/issues/24317).

Unter windows könntest du transparent networks anlegen die jeweils an eine spezifische Karte gebunden sind. Da weiß ich aber nicht ob du auf B 2 Netzwerke anlegen kannst die zur selben Netzwerkkarte gehen.
Unter linux dann ähnlich mit dem host network machbar. Die Container müssten dann halt in 2 Netzwerke.

Der docker daemon unter Linux akzeptiert --ip. Das funktioniert aber nur mit einer IP und auf den anderen IPs reagiert dann gar kein Container.

Am sinnvollsten ist aber wohl das hier: https://stackoverflow.com/a/26320385

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.