mariadb migrated to host
This commit is contained in:
parent
1f53e2061e
commit
e74737e6e3
1 changed files with 5 additions and 11 deletions
|
@ -13,9 +13,7 @@ job "mariadb" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "superboum/amd64_mariadb:v3"
|
image = "superboum/amd64_mariadb:v3"
|
||||||
port_map {
|
network_mode = "host"
|
||||||
mariadb_port = 3306
|
|
||||||
}
|
|
||||||
command = "tail"
|
command = "tail"
|
||||||
args = [
|
args = [
|
||||||
"-f", "/var/log/mysql/error.log",
|
"-f", "/var/log/mysql/error.log",
|
||||||
|
@ -39,21 +37,17 @@ job "mariadb" {
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
memory = 800
|
memory = 800
|
||||||
network {
|
|
||||||
port "mariadb_port" {
|
|
||||||
static = "3306"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
tags = ["mariadb"]
|
tags = ["mariadb"]
|
||||||
port = "mariadb_port"
|
port = 3306
|
||||||
address_mode = "host"
|
address_mode = "driver"
|
||||||
name = "mariadb"
|
name = "mariadb"
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
port = "mariadb_port"
|
port = 3306
|
||||||
|
address_mode = "driver"
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
check_restart {
|
check_restart {
|
||||||
|
|
Reference in a new issue