Migrate Garage
This commit is contained in:
parent
9f6f0fb53c
commit
b29028405d
1 changed files with 15 additions and 8 deletions
|
@ -9,6 +9,11 @@ job "garage" {
|
||||||
}
|
}
|
||||||
|
|
||||||
group "garage" {
|
group "garage" {
|
||||||
|
network {
|
||||||
|
port "s3" { static = 3900 }
|
||||||
|
port "rpc" { static = 3901 }
|
||||||
|
}
|
||||||
|
|
||||||
task "server" {
|
task "server" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
|
@ -26,9 +31,11 @@ job "garage" {
|
||||||
}
|
}
|
||||||
|
|
||||||
template {
|
template {
|
||||||
data = "{{ key \"configuration/garage/garage.toml\" }}"
|
data = file("../config/configuration/garage/garage.toml")
|
||||||
destination = "secrets/garage.toml"
|
destination = "secrets/garage.toml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# --- secrets ---
|
||||||
template {
|
template {
|
||||||
data = "{{ key \"secrets/garage/garage-ca.crt\" }}"
|
data = "{{ key \"secrets/garage/garage-ca.crt\" }}"
|
||||||
destination = "secrets/garage-ca.crt"
|
destination = "secrets/garage-ca.crt"
|
||||||
|
|
Reference in a new issue