EVCC initial config.
This commit is contained in:
46
services/evcc.hcl
Normal file
46
services/evcc.hcl
Normal file
@@ -0,0 +1,46 @@
|
||||
job "evcc" {
|
||||
datacenters = ["alo"]
|
||||
|
||||
meta {
|
||||
uuid = uuidv4()
|
||||
}
|
||||
|
||||
group "sys" {
|
||||
network {
|
||||
port "ui" { to = 7070 }
|
||||
port "p8887" { static = 8887 }
|
||||
port "p7090" { static = 7090 }
|
||||
port "p9522" { static = 9522 }
|
||||
}
|
||||
|
||||
task "server" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "evcc/evcc:latest"
|
||||
ports = [
|
||||
"ui",
|
||||
"p8887",
|
||||
"p7090",
|
||||
"p9522",
|
||||
]
|
||||
|
||||
volumes = [
|
||||
"/data/compute/appdata/evcc/evcc.yaml:/etc/evcc.yaml",
|
||||
"/data/compute/appdata/evcc/evcc:/root/.evcc",
|
||||
]
|
||||
}
|
||||
|
||||
service {
|
||||
name = "evcc"
|
||||
port = "ui"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.evcc.entryPoints=websecure",
|
||||
"traefik.http.routers.evcc.middlewares=authentik@file",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user