Some other fixes
This commit is contained in:
parent
e7ed8a49fb
commit
b4bfbddd54
3 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Consul
|
Description=Consul
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul
|
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Nomad
|
Description=Nomad
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
|
||||||
After=glusterd.service
|
After=glusterd.service
|
||||||
|
After=consul.service
|
||||||
|
Wants=network-online.target
|
||||||
Wants=glusterd.service
|
Wants=glusterd.service
|
||||||
|
Wants=consul.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad
|
||||||
|
|
|
@ -34,6 +34,7 @@ job "email" {
|
||||||
cpu = 100
|
cpu = 100
|
||||||
memory = 200
|
memory = 200
|
||||||
network {
|
network {
|
||||||
|
mbits = 1
|
||||||
port "auth_port" {
|
port "auth_port" {
|
||||||
static = "1337"
|
static = "1337"
|
||||||
}
|
}
|
||||||
|
@ -179,6 +180,7 @@ job "email" {
|
||||||
cpu = 100
|
cpu = 100
|
||||||
memory = 50
|
memory = 50
|
||||||
network {
|
network {
|
||||||
|
mbits = 1
|
||||||
port "dkim_port" {
|
port "dkim_port" {
|
||||||
static = "8999"
|
static = "8999"
|
||||||
}
|
}
|
||||||
|
@ -261,6 +263,7 @@ job "email" {
|
||||||
cpu = 100
|
cpu = 100
|
||||||
memory = 50
|
memory = 50
|
||||||
network {
|
network {
|
||||||
|
mbits = 1
|
||||||
port "smtp_port" {
|
port "smtp_port" {
|
||||||
static = "25"
|
static = "25"
|
||||||
}
|
}
|
||||||
|
@ -436,6 +439,7 @@ job "email" {
|
||||||
cpu = 200
|
cpu = 200
|
||||||
memory = 1000
|
memory = 1000
|
||||||
network {
|
network {
|
||||||
|
mbits = 1
|
||||||
port "sogo_web_port" {}
|
port "sogo_web_port" {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue