-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RTC-405] Resolve FQDNs in DNS cluster strategy (#137)
- Loading branch information
Showing
11 changed files
with
134 additions
and
179 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ x-jellyfish-template: &jellyfish-template | |
environment: &jellyfish-environment | ||
JF_SERVER_API_TOKEN: "development" | ||
JF_DIST_ENABLED: "true" | ||
JF_DIST_MODE: "name" | ||
JF_DIST_STRATEGY_NAME: "DNS" | ||
restart: on-failure | ||
|
||
|
@@ -22,66 +23,34 @@ services: | |
- .:/app | ||
- /app/_build | ||
- /app/deps | ||
networks: | ||
dns-network: | ||
aliases: | ||
- dnsmasq | ||
depends_on: | ||
- app1 | ||
- app2 | ||
- dnsmasq | ||
|
||
app1: | ||
<<: *jellyfish-template | ||
environment: | ||
<<: *jellyfish-environment | ||
JF_HOST: "localhost:4001" | ||
JF_PORT: 4001 | ||
JF_DIST_NODE_NAME: [email protected] | ||
JF_DIST_QUERY: app.dns-network | ||
ports: | ||
- 4001:4001 | ||
networks: | ||
dns-network: | ||
ipv4_address: 172.28.1.2 | ||
default: | ||
aliases: | ||
- app.dns-network | ||
dns: | ||
- 172.28.1.4:5353 | ||
|
||
app2: | ||
container_name: name | ||
<<: *jellyfish-template | ||
environment: | ||
<<: *jellyfish-environment | ||
JF_HOST: "localhost:4002" | ||
JF_PORT: 4002 | ||
JF_DIST_NODE_NAME: [email protected] | ||
JF_DIST_QUERY: app.dns-network | ||
ports: | ||
- 4002:4002 | ||
networks: | ||
dns-network: | ||
# Register IP under alias | ||
ipv4_address: 172.28.1.3 | ||
default: | ||
aliases: | ||
- app.dns-network | ||
dns: | ||
- 172.28.1.4:5353 | ||
|
||
dnsmasq: | ||
image: andyshinn/dnsmasq:2.78 | ||
volumes: | ||
- /etc/resolv.conf:/etc/resolv.dnsmasq.conf | ||
command: -d -q --no-hosts --no-resolv --no-poll --server 127.0.0.11 --listen-address 0.0.0.0 --port 5353 --log-queries --log-facility=- --address=/./127.0.0.11 | ||
networks: | ||
dns-network: | ||
ipv4_address: 172.28.1.4 | ||
aliases: | ||
- dnsmasq | ||
|
||
networks: | ||
dns-network: | ||
ipam: | ||
config: | ||
- subnet: 172.28.1.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.