Compare commits

...

2 Commits

Author SHA1 Message Date
064de20bca Leantime config. 2024-05-21 07:56:14 +01:00
1e1b6cde9d MySQL 8.4. 2024-05-13 07:09:14 +01:00
2 changed files with 51 additions and 1 deletions

50
services/leantime.hcl Normal file
View File

@@ -0,0 +1,50 @@
job "leantime" {
datacenters = ["alo"]
group "web" {
network {
port "http" {
to = 80
}
}
task "server" {
driver = "docker"
config {
image = "leantime/leantime:latest"
ports = ["http"]
volumes = [
"/data/compute/appdata/leantime:/var/www/html/userfiles",
]
}
env {
LEAN_DEFAULT_TIMEZONE = "Europe/Lisbon"
LEAN_DB_HOST = "mysql.service.consul"
LEAN_DB_USER = "leantime"
LEAN_DB_PASSWORD = "Xuphaedoo9kuaseeQuei"
LEAN_DB_DATABASE = "leantime"
LEAN_EMAIL_RETURN = "leantime@paler.net"
LEAN_APP_URL = "https://leantime.v.paler.net"
LEAN_EMAIL_SMTP_HOSTS = "192.168.1.1"
LEAN_EMAIL_SMTP_AUTH = "false"
LEAN_OIDC_ENABLE = "true"
LEAN_OIDC_PROVIDER_URL = "https://authentik.v.paler.net/application/o/leantime/"
LEAN_OIDC_CLIENT_ID = "nWqJu9g4avhdpmUzqqvjsExCA1Jrick7GSMd0D6u"
LEAN_OIDC_CLIENT_SECRET = "VvPQi5q3kkVTCwN8QWwwPTCqjWc9VbRanCFxa0zB2mhr1ZPxUYXP7Ygg6naMInE4P5vyqJd5w8XiWkuecW14G4KxgXpFtWChKnCOOpe47gjZGNbkYIEDZUmkUB99Saxx"
}
service {
name = "leantime"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.leantime.entryPoints=websecure",
"traefik.http.routers.leantime.middlewares=authentik@file",
]
}
}
}
}

View File

@@ -18,7 +18,7 @@ job "mysql" {
driver = "docker"
config {
image = "mysql:8.3"
image = "mysql:8.4"
args = [
# 300M, up from default of 100M
"--innodb-redo-log-capacity=314572800",