Skip to content

Commit f117e5d

Browse files
committed
May be fix volumes issue
1 parent eb74460 commit f117e5d

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

_nomad/loadbalancer.nomad

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ job "loadbalancer" {
3434

3535
config {
3636
image = "wkwtfigo/load-balancer:latest"
37-
ports = ["http"]
37+
ports = ["http", "communication"]
3838
volumes = [
39-
"/var/log/app-redirect-balancer:/app/.logs"
39+
"/var/log/app-redirect-balancer/:/app/.logs/"
4040
]
4141
}
4242

@@ -55,6 +55,10 @@ job "loadbalancer" {
5555
static = 8000
5656
to = 8000
5757
}
58+
port "communication" {
59+
static = 8001
60+
to = 8001
61+
}
5862
}
5963
}
6064
}

balanced_instance/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"balancing_address": "151.242.43.104:8000",
33
"balanced_port": 8080,
44
"application_port": 8888,
5-
"log_file": "./.logs/balanced.log"
5+
"log_file": "/app/.logs/balanced.log"
66
}

balancer_server/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"balancing_port": 8000,
44
"exposed_port": 8001,
55
"type": "redirect",
6-
"log_file": "./.logs/balancer.log"
6+
"log_file": "/app/.logs/balancer.log"
77
}

0 commit comments

Comments
 (0)