Docker does not use IPv6, switching to "network=host"

This commit is contained in:
Quentin 2020-10-27 23:25:30 +01:00
parent 2557793cee
commit f4a88fa565
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"suffix": "dc=deuxfleurs,dc=fr", "suffix": "dc=deuxfleurs,dc=fr",
"bind": "0.0.0.0:1389", "bind": "0.0.0.0:389",
"consul_host": "http://consul.service.2.cluster.deuxfleurs.fr:8500", "consul_host": "http://consul.service.2.cluster.deuxfleurs.fr:8500",
"log_level": "debug", "log_level": "debug",
"acl": [ "acl": [

View File

@ -13,9 +13,10 @@ job "directory2" {
driver = "docker" driver = "docker"
config { config {
image = "lxpz/bottin_amd64:14" image = "lxpz/bottin_amd64:14"
network_mode = "host"
readonly_rootfs = true readonly_rootfs = true
port_map { port_map {
ldap_port = 1389 ldap_port = 389
} }
volumes = [ volumes = [
"secrets/config.json:/config.json" "secrets/config.json:/config.json"

View File

@ -5,7 +5,7 @@ job "postgres" {
update { update {
max_parallel = 1 max_parallel = 1
stagger = "5m" stagger = "2m"
} }
group "postgres" { group "postgres" {
@ -14,6 +14,7 @@ job "postgres" {
config { config {
image = "superboum/amd64_postgres:v3" image = "superboum/amd64_postgres:v3"
network_mode = "host"
readonly_rootfs = false readonly_rootfs = false
command = "/usr/local/bin/stolon-sentinel" command = "/usr/local/bin/stolon-sentinel"
args = [ args = [
@ -32,6 +33,7 @@ job "postgres" {
config { config {
image = "superboum/amd64_postgres:v3" image = "superboum/amd64_postgres:v3"
network_mode = "host"
readonly_rootfs = false readonly_rootfs = false
command = "/usr/local/bin/stolon-proxy" command = "/usr/local/bin/stolon-proxy"
args = [ args = [
@ -78,8 +80,8 @@ job "postgres" {
driver = "docker" driver = "docker"
config { config {
network_mode = "host"
image = "superboum/amd64_postgres:v3" image = "superboum/amd64_postgres:v3"
network_mode = "host"
readonly_rootfs = false readonly_rootfs = false
command = "/usr/local/bin/stolon-keeper" command = "/usr/local/bin/stolon-keeper"
args = [ args = [