feat(forgejo): add cache server configuration
This commit is contained in:
parent
b3042df33d
commit
e21b2d2e69
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,7 @@ job "forgejo" {
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
|
port "cache_server" {}
|
||||||
port "envoy_metrics" {
|
port "envoy_metrics" {
|
||||||
to = 9102
|
to = 9102
|
||||||
}
|
}
|
||||||
|
@ -122,6 +123,8 @@ job "forgejo" {
|
||||||
cache:
|
cache:
|
||||||
enabled: true
|
enabled: true
|
||||||
dir: "{{ env "NOMAD_TASK_DIR" }}/cache"
|
dir: "{{ env "NOMAD_TASK_DIR" }}/cache"
|
||||||
|
host: "forgejo-runner.virtual.consul"
|
||||||
|
port: {{ env "NOMAD_PORT_cache_server" }}
|
||||||
container:
|
container:
|
||||||
network: "host"
|
network: "host"
|
||||||
enable_ipv6: false
|
enable_ipv6: false
|
||||||
|
@ -152,6 +155,7 @@ job "forgejo" {
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
|
port = "9040"
|
||||||
provider = "consul"
|
provider = "consul"
|
||||||
|
|
||||||
meta {
|
meta {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue