Files
demo/resources.toml
2024-10-07 05:00:06 -04:00

149 lines
3.7 KiB
TOML

###############
# Komodo Demo #
###############
[[server]]
name = "demo-server"
description = "Hosts demo.komo.do"
tags = ["komodo", "demo"]
config.address = "https://host.docker.internal:8120"
config.region = "South-1"
config.enabled = true
config.mem_warning = 85.0
##
[[resource_sync]]
name = "demo-sync"
description = "Restores the config back to contents in demo-sync resources.toml"
tags = ["komodo", "demo"]
config.git_provider = "git.komo.do"
config.repo = "mbecker20/demo-sync"
config.resource_path = "./resources.toml"
config.delete = true
##################
# Immich (Stack) #
##################
[[stack]]
name = "demo-immich"
description = "See https://git.komo.do/mbecker20/demo-sync/src/branch/main/immich.compose.yaml"
tags = ["demo", "immich"]
deploy = true
config.server_id = "demo-server"
config.file_paths = ["immich.compose.yaml"]
config.git_provider = "git.komo.do"
config.repo = "mbecker20/demo-sync"
config.environment = """
# Supports comments 🦎
UPLOAD_LOCATION = /immich/upload
DB_DATA_LOCATION = /immich/postgres # And end of line comments.
IMMICH_VERSION: release
# And different formats 🦎
- DB_PASSWORD: postgres
- DB_USERNAME: postgres
- DB_DATABASE_NAME: immich
"""
####################
# Jellyfin (Stack) #
####################
[[stack]]
name = "demo-jellyfin"
description = "See https://git.komo.do/mbecker20/demo-sync/src/branch/main/jellyfin.compose.yaml"
tags = ["demo", "jellyfin"]
deploy = true
config.server_id = "demo-server"
config.file_paths = ["jellyfin.compose.yaml"]
config.git_provider = "git.komo.do"
config.repo = "mbecker20/demo-sync"
##########################
# Immich Deployer (Repo) #
##########################
[[repo]]
name = "trigger-immich-deploy"
description = "clone / pull to trigger immich stop, then deploy."
tags = ["immich", "automation"]
config.server_id = "demo-server"
config.git_provider = "git.komo.do"
config.repo = "mbecker20/demo-sync"
config.on_pull.path = "."
config.on_pull.command = "sh ./trigger-immich-deploy.sh"
###########
# Logging #
###########
[[deployment]]
name = "grafana-ui"
description = "runs on port 3001"
tags = ["logging", "ui"]
deploy = true
config.server_id = "demo-server"
config.image.type = "Image"
config.image.params.image = "grafana/grafana"
config.restart = "unless-stopped"
config.network = "bridge"
config.ports = "3001 = 3000"
config.extra_args = ["--add-host=host.docker.internal:host-gateway"] # so it can communicate with tempo at host.docker.internal
config.volumes = "grafana-data = /var/lib/grafana"
config.labels = "vector = key-value" # So vector picks up the logs, ships to loki
##
[[deployment]]
name = "loki-logging"
description = "runs on 3100"
tags = ["logging"]
deploy = true
config.server_id = "demo-server"
config.image.type = "Image"
config.image.params.image = "grafana/loki"
config.restart = "unless-stopped"
config.network = "host"
config.volumes = "loki-data = /loki"
##
[[stack]]
name = "tempo-tracing"
description = "OTLP: port 4317. HTTP: 3200. GRPC: 9096"
tags = ["logging"]
deploy = true
config.server_id = "demo-server"
config.file_paths = ["tempo.compose.yaml"]
config.ignore_services = ["init"]
config.git_provider = "git.komo.do"
config.repo = "mbecker20/demo-sync"
####################
# Vector (Logging) #
####################
# [[stack]]
# name = "demo-jellyfin"
# description = "Vector picks up logs from containers and ships them to central location"
# tags = ["logging"]
# deploy = true
# config.server_id = "demo-server"
# config.file_paths = ["compose.yaml"]
# config.git_provider = "git.komo.do"
#
# config.repo = "mbecker20/demo-vector"
# [[repo]]
###############
# Hello world #
###############
[[deployment]]
name = "hello_world"
tags = ["hello", "world"]
config.server_id = "demo-server"
config.image.type = "Image"
config.image.params.image = "hello-world"