Adding DNS to docker for non-host network mode.

This commit is contained in:
Samuel Clay 2025-04-11 09:10:20 -07:00
parent 10750a55e4
commit 4d8cae43a0
2 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,4 @@
{
"dns": ["127.0.0.1"],
"dns-search": ["node.consul", "service.consul"]
}

View file

@ -154,7 +154,6 @@
restart_policy: unless-stopped
networks_cli_compatible: yes
network_mode: host
# network_mode: default
# networks:
# - name: newsblurnet
# aliases:
@ -219,12 +218,12 @@
hostname: "{{ inventory_hostname }}"
restart_policy: unless-stopped
networks_cli_compatible: yes
# network_mode: host
network_mode: default
networks:
- name: newsblurnet
aliases:
- mongo
- "{{ inventory_hostname }}"
ports:
- "27017:27017"
command: --config /etc/mongod.conf