Skip to content

Commit f5a7046

Browse files
committed
mongodb: use host networking & bind to v6
1 parent ee0c10e commit f5a7046

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ansible/roles/mongodb/templates/mongodb.container.j2

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ Volume = mongodb.volume:/data/db
1010
# XXX: role should to have a dependency for the lovelace cert
1111
Volume = /etc/opt/mongodb:/certs:ro
1212
NoNewPrivileges = true
13-
PublishPort = 27017:27017
13+
Network=host
1414
Exec = \
1515
--auth \
1616
--tlsMode requireTLS \
1717
--tlsCertificateKeyFile /certs/fullchain-plus-key.pem \
1818
--tlsCAFile /certs/fullchain.pem \
19-
--tlsAllowConnectionsWithoutCertificates
19+
--tlsAllowConnectionsWithoutCertificates \
20+
--ipv6
21+
22+
[Network]
23+
IPv6=true
2024

2125
[Service]
2226
# Resource control

0 commit comments

Comments
 (0)