Files
2026-11-20 15:30:33 +03:00

1123 lines
27 KiB
YAML

{
"services": {
"postgres": {
"image": "postgres:16.6-bookworm",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=16m",
"/var/run/postgresql:rw,noexec,nosuid,size=4m"
],
"cpus": 0.5,
"mem_limit": "512m",
"volumes": [
"postgres_data:/var/lib/postgresql/data",
"./.local/operator/postgres-password:/run/operator/postgres-password:ro",
"./.local/operator/init.sql:/docker-entrypoint-initdb.d/001-roles.sql:ro"
],
"environment": {
"POSTGRES_DB": "messenger",
"POSTGRES_USER": "operator",
"POSTGRES_PASSWORD_FILE": "/run/operator/postgres-password"
},
"command": [
"postgres",
"-c",
"listen_addresses=127.0.0.1",
"-p",
"15432"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
},
"cap_add": [
"CHOWN",
"DAC_OVERRIDE",
"FOWNER",
"SETGID",
"SETUID"
]
},
"postgres-tls": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.25,
"mem_limit": "64m",
"user": "10001:10001",
"network_mode": "service:postgres",
"volumes": [
"./.local/identities/postgres:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/security/postgres.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"depends_on": [
"postgres"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"redis": {
"image": "redis:7.4.2-bookworm",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "128m",
"volumes": [
"redis_data:/data",
"./.local/config/redis.acl:/run/config/users.acl:ro"
],
"command": [
"redis-server",
"--bind",
"127.0.0.1",
"--port",
"16379",
"--appendonly",
"yes",
"--appendfsync",
"always",
"--maxmemory",
"64mb",
"--maxmemory-policy",
"noeviction",
"--aclfile",
"/run/config/users.acl"
],
"user": "999:999",
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"redis-tls": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.25,
"mem_limit": "64m",
"user": "10001:10001",
"network_mode": "service:redis",
"volumes": [
"./.local/identities/redis:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/security/redis.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"depends_on": [
"redis"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"broker": {
"image": "redis:7.4.2-bookworm",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"volumes": [
"broker_data:/data",
"./.local/config/broker.acl:/run/config/users.acl:ro"
],
"command": [
"redis-server",
"--bind",
"127.0.0.1",
"--port",
"16379",
"--appendonly",
"yes",
"--appendfsync",
"always",
"--maxmemory",
"192mb",
"--maxmemory-policy",
"noeviction",
"--aclfile",
"/run/config/users.acl"
],
"user": "999:999",
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"broker-tls": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.25,
"mem_limit": "64m",
"user": "10001:10001",
"network_mode": "service:broker",
"volumes": [
"./.local/identities/broker:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/security/broker.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"depends_on": [
"broker"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"minio": {
"image": "mtusi-minio:RELEASE.2025-10-15T17-29-55Z",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 1,
"mem_limit": "512m",
"volumes": [
"minio_data:/data",
"./.local/identities/minio:/run/minio-certs:ro"
],
"build": "./infra/minio",
"user": "10001:10001",
"env_file": [
"./.local/operator/minio.env"
],
"command": [
"server",
"/data",
"--address",
":9000",
"--console-address",
"127.0.0.1:9001",
"--certs-dir",
"/run/minio-certs"
],
"depends_on": {
"volume-init": {
"condition": "service_completed_successfully"
}
},
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"openbao": {
"image": "openbao/openbao:2.5.0",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"volumes": [
"./.local/identities/openbao:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"openbao_data:/bao/data",
"./infra/security/openbao.hcl:/etc/bao/config.hcl:ro"
],
"user": "10001:10001",
"command": [
"server",
"-config=/etc/bao/config.hcl"
],
"environment": {
"SKIP_SETCAP": "true",
"SKIP_CHOWN": "true"
},
"ports": [
"127.0.0.1:18200:8200"
],
"depends_on": {
"volume-init": {
"condition": "service_completed_successfully"
}
},
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"volume-init": {
"image": "redis:7.4.2-bookworm",
"user": "0:0",
"entrypoint": [
"sh",
"-c"
],
"command": [
"chown 10001:10001 /minio /bao /tempo; chown 472:472 /grafana"
],
"volumes": [
"minio_data:/minio",
"openbao_data:/bao",
"tempo_data:/tempo",
"grafana_data:/grafana"
],
"network_mode": "none",
"cap_drop": [
"ALL"
],
"cap_add": [
"CHOWN"
],
"security_opt": [
"no-new-privileges:true"
],
"read_only": true,
"mem_limit": "64m",
"cpus": 0.25,
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"migration": {
"image": "${APP_IMAGE:-mtusi-messenger:lab7}",
"build": ".",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"user": "10001:10001",
"command": [
"alembic",
"upgrade",
"head"
],
"env_file": [
"./.local/operator/bootstrap.env"
],
"environment": {
"TLS_CA_FILE": "/run/trust/ca.crt"
},
"volumes": [
"./.local/identities/operator:/run/identity:ro",
"./.local/trust:/run/trust:ro"
],
"healthcheck": {
"disable": true
},
"profiles": [
"operator"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"s3-bootstrap": {
"image": "${APP_IMAGE:-mtusi-messenger:lab7}",
"build": ".",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"user": "10001:10001",
"command": [
"python",
"-m",
"src.core.storage_bootstrap"
],
"env_file": [
"./.local/operator/bootstrap.env"
],
"environment": {
"TLS_CA_FILE": "/run/trust/ca.crt"
},
"volumes": [
"./.local/identities/operator:/run/identity:ro",
"./.local/trust:/run/trust:ro"
],
"healthcheck": {
"disable": true
},
"profiles": [
"operator"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"api": {
"image": "${APP_IMAGE:-mtusi-messenger:lab7}",
"build": ".",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "512m",
"user": "10001:10001",
"init": true,
"command": [
"python",
"-m",
"src.secure.runtime",
"python",
"-m",
"src"
],
"volumes": [
"./.local/identities/api:/run/identity:ro",
"./.local/trust:/run/trust:ro"
],
"environment": {
"SERVICE_ROLE": "api",
"BAO_ADDR": "https://openbao:8200",
"TLS_CA_FILE": "/run/trust/ca.crt",
"APP_PORT": "8080",
"APP_ENV": "production",
"OTEL_ENABLED": "true",
"OTEL_SERVICE_NAME": "messenger-api",
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4318",
"DATABASE_POOL_SIZE": "5",
"DATABASE_COMMAND_TIMEOUT_SECONDS": "3",
"DATABASE_STATEMENT_TIMEOUT_MS": "2500",
"DATABASE_POOL_TIMEOUT_SECONDS": "2",
"HTTP_REQUEST_TIMEOUT_SECONDS": "5",
"ARGON2_MEMORY_COST": "65536",
"ARGON2_TIME_COST": "3",
"ARGON2_PARALLELISM": "4",
"PASSWORD_HASH_CONCURRENCY": "2",
"LOGIN_IP_LIMIT": "120",
"LOGIN_ACCOUNT_LIMIT": "10",
"LOGIN_WINDOW_SECONDS": "60",
"WORKER_CONCURRENCY": "1",
"WORKER_MEMORY_MB": "768",
"JOB_TIMEOUT_SECONDS": "30",
"JOB_LEASE_SECONDS": "120"
},
"healthcheck": {
"test": [
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health/ready',timeout=2)"
],
"interval": "3s",
"timeout": "3s",
"retries": 40,
"start_period": "15s"
},
"deploy": {
"replicas": 2
},
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"worker": {
"image": "${APP_IMAGE:-mtusi-messenger:lab7}",
"build": ".",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=128m"
],
"cpus": 1,
"mem_limit": "1g",
"user": "10001:10001",
"init": true,
"command": [
"python",
"-m",
"src.secure.runtime",
"python",
"-m",
"src.pipeline.worker"
],
"volumes": [
"./.local/identities/worker:/run/identity:ro",
"./.local/trust:/run/trust:ro"
],
"environment": {
"SERVICE_ROLE": "worker",
"BAO_ADDR": "https://openbao:8200",
"TLS_CA_FILE": "/run/trust/ca.crt",
"APP_PORT": "8080",
"APP_ENV": "production",
"OTEL_ENABLED": "true",
"OTEL_SERVICE_NAME": "messenger-worker",
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4318",
"DATABASE_POOL_SIZE": "5",
"DATABASE_COMMAND_TIMEOUT_SECONDS": "3",
"DATABASE_STATEMENT_TIMEOUT_MS": "2500",
"DATABASE_POOL_TIMEOUT_SECONDS": "2",
"HTTP_REQUEST_TIMEOUT_SECONDS": "5",
"ARGON2_MEMORY_COST": "65536",
"ARGON2_TIME_COST": "3",
"ARGON2_PARALLELISM": "4",
"PASSWORD_HASH_CONCURRENCY": "2",
"LOGIN_IP_LIMIT": "120",
"LOGIN_ACCOUNT_LIMIT": "10",
"LOGIN_WINDOW_SECONDS": "60",
"WORKER_CONCURRENCY": "1",
"WORKER_MEMORY_MB": "768",
"JOB_TIMEOUT_SECONDS": "30",
"JOB_LEASE_SECONDS": "120"
},
"healthcheck": {
"test": [
"CMD",
"python",
"-c",
"import os; os.kill(1,0)"
],
"interval": "3s",
"timeout": "3s",
"retries": 40,
"start_period": "15s"
},
"stop_grace_period": "45s",
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"dispatcher": {
"image": "${APP_IMAGE:-mtusi-messenger:lab7}",
"build": ".",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"user": "10001:10001",
"init": true,
"command": [
"python",
"-m",
"src.secure.runtime",
"python",
"-m",
"src.pipeline.dispatcher"
],
"volumes": [
"./.local/identities/dispatcher:/run/identity:ro",
"./.local/trust:/run/trust:ro"
],
"environment": {
"SERVICE_ROLE": "dispatcher",
"BAO_ADDR": "https://openbao:8200",
"TLS_CA_FILE": "/run/trust/ca.crt",
"APP_PORT": "8080",
"APP_ENV": "production",
"OTEL_ENABLED": "true",
"OTEL_SERVICE_NAME": "messenger-dispatcher",
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4318",
"DATABASE_POOL_SIZE": "5",
"DATABASE_COMMAND_TIMEOUT_SECONDS": "3",
"DATABASE_STATEMENT_TIMEOUT_MS": "2500",
"DATABASE_POOL_TIMEOUT_SECONDS": "2",
"HTTP_REQUEST_TIMEOUT_SECONDS": "5",
"ARGON2_MEMORY_COST": "65536",
"ARGON2_TIME_COST": "3",
"ARGON2_PARALLELISM": "4",
"PASSWORD_HASH_CONCURRENCY": "2",
"LOGIN_IP_LIMIT": "120",
"LOGIN_ACCOUNT_LIMIT": "10",
"LOGIN_WINDOW_SECONDS": "60",
"WORKER_CONCURRENCY": "1",
"WORKER_MEMORY_MB": "768",
"JOB_TIMEOUT_SECONDS": "30",
"JOB_LEASE_SECONDS": "120"
},
"healthcheck": {
"test": [
"CMD",
"python",
"-c",
"import os; os.kill(1,0)"
],
"interval": "3s",
"timeout": "3s",
"retries": 40,
"start_period": "15s"
},
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"reconciler": {
"image": "${APP_IMAGE:-mtusi-messenger:lab7}",
"build": ".",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"user": "10001:10001",
"init": true,
"command": [
"python",
"-m",
"src.secure.runtime",
"python",
"-m",
"src.maintenance.reconcile",
"--apply",
"--interval",
"300"
],
"volumes": [
"./.local/identities/reconciler:/run/identity:ro",
"./.local/trust:/run/trust:ro"
],
"environment": {
"SERVICE_ROLE": "reconciler",
"BAO_ADDR": "https://openbao:8200",
"TLS_CA_FILE": "/run/trust/ca.crt",
"APP_PORT": "8080",
"APP_ENV": "production",
"OTEL_ENABLED": "true",
"OTEL_SERVICE_NAME": "messenger-reconciler",
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4318",
"DATABASE_POOL_SIZE": "5",
"DATABASE_COMMAND_TIMEOUT_SECONDS": "3",
"DATABASE_STATEMENT_TIMEOUT_MS": "2500",
"DATABASE_POOL_TIMEOUT_SECONDS": "2",
"HTTP_REQUEST_TIMEOUT_SECONDS": "5",
"ARGON2_MEMORY_COST": "65536",
"ARGON2_TIME_COST": "3",
"ARGON2_PARALLELISM": "4",
"PASSWORD_HASH_CONCURRENCY": "2",
"LOGIN_IP_LIMIT": "120",
"LOGIN_ACCOUNT_LIMIT": "10",
"LOGIN_WINDOW_SECONDS": "60",
"WORKER_CONCURRENCY": "1",
"WORKER_MEMORY_MB": "768",
"JOB_TIMEOUT_SECONDS": "30",
"JOB_LEASE_SECONDS": "120"
},
"healthcheck": {
"test": [
"CMD",
"python",
"-c",
"import os; os.kill(1,0)"
],
"interval": "3s",
"timeout": "3s",
"retries": 40,
"start_period": "15s"
},
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"lb": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"user": "10001:10001",
"volumes": [
"./.local/identities/lb:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"ports": [
"127.0.0.1:${APP_PORT:-8443}:8443"
],
"depends_on": {
"api": {
"condition": "service_healthy"
}
},
"stop_signal": "SIGUSR1",
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"otel-collector": {
"image": "otel/opentelemetry-collector-contrib:0.123.0",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "256m",
"volumes": [
"./.local/identities/otel-collector:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/observability/collector.yaml:/etc/otelcol/config.yaml:ro"
],
"user": "10001:10001",
"command": [
"--config=/etc/otelcol/config.yaml"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"otel-tls": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.25,
"mem_limit": "64m",
"user": "10001:10001",
"network_mode": "service:otel-collector",
"volumes": [
"./.local/identities/otel-collector:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/security/otel-collector.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"depends_on": [
"otel-collector"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"prometheus": {
"image": "prom/prometheus:v3.2.1",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "384m",
"volumes": [
"./.local/identities/prometheus:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"prometheus_data:/prometheus",
"./infra/observability/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro",
"./infra/observability/alerts.yaml:/etc/prometheus/alerts.yaml:ro"
],
"user": "65534:65534",
"command": [
"--config.file=/etc/prometheus/prometheus.yaml",
"--web.listen-address=127.0.0.1:19090",
"--storage.tsdb.retention.time=7d"
],
"ports": [
"127.0.0.1:19090:9090"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"prometheus-tls": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.25,
"mem_limit": "64m",
"user": "10001:10001",
"network_mode": "service:prometheus",
"volumes": [
"./.local/identities/prometheus:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/security/prometheus.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"depends_on": [
"prometheus"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"loki": {
"image": "grafana/loki:3.4.2",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "384m",
"volumes": [
"./.local/identities/loki:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"loki_data:/loki",
"./infra/observability/loki.yaml:/etc/loki/config.yaml:ro"
],
"user": "10001:10001",
"command": [
"-config.file=/etc/loki/config.yaml"
],
"ports": [
"127.0.0.1:13100:3100"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"loki-tls": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.25,
"mem_limit": "64m",
"user": "10001:10001",
"network_mode": "service:loki",
"volumes": [
"./.local/identities/loki:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/security/loki.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"depends_on": [
"loki"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"tempo": {
"image": "grafana/tempo:2.7.2",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "384m",
"volumes": [
"./.local/identities/tempo:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"tempo_data:/var/tempo",
"./infra/observability/tempo.yaml:/etc/tempo/config.yaml:ro"
],
"user": "10001:10001",
"command": [
"-config.file=/etc/tempo/config.yaml"
],
"ports": [
"127.0.0.1:13200:3200"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"tempo-tls": {
"image": "haproxy:3.0.12-alpine",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.25,
"mem_limit": "64m",
"user": "10001:10001",
"network_mode": "service:tempo",
"volumes": [
"./.local/identities/tempo:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"./infra/security/tempo.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
],
"depends_on": [
"tempo"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
},
"grafana": {
"image": "grafana/grafana:11.6.0",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"tmpfs": [
"/tmp:rw,noexec,nosuid,size=64m"
],
"cpus": 0.5,
"mem_limit": "384m",
"volumes": [
"./.local/identities/grafana:/run/identity:ro",
"./.local/trust:/run/trust:ro",
"grafana_data:/var/lib/grafana",
"./.local/config/grafana-sources.yaml:/etc/grafana/provisioning/datasources/sources.yaml:ro",
"./infra/observability/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro",
"./infra/observability/grafana/dashboards:/var/lib/grafana/dashboards:ro"
],
"user": "472:472",
"env_file": [
"./.local/operator/grafana.env"
],
"environment": {
"GF_SERVER_PROTOCOL": "https",
"GF_SERVER_CERT_FILE": "/run/identity/service.crt",
"GF_SERVER_CERT_KEY": "/run/identity/service.key",
"GF_AUTH_ANONYMOUS_ENABLED": "false",
"GF_USERS_ALLOW_SIGN_UP": "false",
"GF_ANALYTICS_REPORTING_ENABLED": "false",
"GF_ANALYTICS_CHECK_FOR_UPDATES": "false",
"GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH": "/var/lib/grafana/dashboards/messenger.json"
},
"ports": [
"127.0.0.1:13000:3000"
],
"logging": {
"driver": "json-file",
"options": {
"max-size": "5m",
"max-file": "2"
}
}
}
},
"volumes": {
"postgres_data": {},
"redis_data": {},
"broker_data": {},
"minio_data": {},
"openbao_data": {},
"prometheus_data": {},
"loki_data": {},
"tempo_data": {},
"grafana_data": {}
}
}