diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 14:50:22 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-10-28 14:50:22 +0100 |
commit | e74737e6e3816aace186b23b5d4d6049877fb122 (patch) | |
tree | d42cd777b1fd50225de9216b8623c6a117ad82b4 | |
parent | 1f53e2061e4ba18cd1b2b6feb13c1864c4e5f3db (diff) | |
download | infrastructure-e74737e6e3816aace186b23b5d4d6049877fb122.tar.gz infrastructure-e74737e6e3816aace186b23b5d4d6049877fb122.zip |
mariadb migrated to host
-rw-r--r-- | app/deployment/mariadb.hcl | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/app/deployment/mariadb.hcl b/app/deployment/mariadb.hcl index 2b9be7e..29e2be6 100644 --- a/app/deployment/mariadb.hcl +++ b/app/deployment/mariadb.hcl @@ -13,9 +13,7 @@ job "mariadb" { driver = "docker" config { image = "superboum/amd64_mariadb:v3" - port_map { - mariadb_port = 3306 - } + network_mode = "host" command = "tail" args = [ "-f", "/var/log/mysql/error.log", @@ -39,21 +37,17 @@ job "mariadb" { resources { memory = 800 - network { - port "mariadb_port" { - static = "3306" - } - } } service { tags = ["mariadb"] - port = "mariadb_port" - address_mode = "host" + port = 3306 + address_mode = "driver" name = "mariadb" check { type = "tcp" - port = "mariadb_port" + port = 3306 + address_mode = "driver" interval = "60s" timeout = "5s" check_restart { |