-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
495 lines (468 loc) · 20.3 KB
/
docker-compose.yaml
File metadata and controls
495 lines (468 loc) · 20.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
#================================================================================================
# TelemetryFlow Hermes - Docker Compose Configuration
# Full Stack: Hermes + PostgreSQL + ClickHouse + Redis + NATS + Backend + Frontend
#
# TelemetryFlow Hermes - Community Enterprise Observability Platform (CEOP)
# Copyright (c) 2024-2026 Telemetri Data Indonesia. All rights reserved.
#
# PROFILES:
# - core: Essential services (postgres, clickhouse, redis, nats, backend, frontend)
# - monitoring: Observability stack (tfo-collector, tfo-agent)
# - tools: Management tools (portainer)
# - all: All services combined
#
# USAGE:
# docker-compose up -d # Hermes agent only
# docker-compose --profile core up -d # Core services + Hermes
# docker-compose --profile core --profile monitoring up -d # Core + monitoring
# docker-compose --profile all up -d # All services
#
# QUICK START:
# 1. Start core stack: docker-compose --profile core up -d
# 2. Access frontend: http://localhost:8080
# 3. Access backend API: http://localhost:3000/api/v2
# 4. Access Swagger: http://localhost:3000/api
#
# NOTE: tfo-agent requires custom image (telemetryflow/telemetryflow-agent).
# It is non-blocking — the rest of the stack works without it.
# For production bind-mount volumes, run: bash scripts/init-volumes.sh
#
#================================================================================================
# OTLP HTTP Endpoints (Dual Ingestion Support)
#================================================================================================
#
# TelemetryFlow Platform (Recommended - TFO Standalone):
# POST http://localhost:4318/v2/traces
# POST http://localhost:4318/v2/metrics
# POST http://localhost:4318/v2/logs
#
# OTEL Community (Backwards Compatible - OCB/Standard):
# POST http://localhost:4318/v1/traces
# POST http://localhost:4318/v1/metrics
# POST http://localhost:4318/v1/logs
#
# gRPC (Both versions via same port): localhost:4317
#
#================================================================================================
#================================================================================================
# NETWORK SETUP
#================================================================================================
networks:
telemetryflow_hermes_net:
name: telemetryflow_hermes_net
driver: bridge
ipam:
config:
- subnet: 172.155.0.0/16
#================================================================================================
# SERVICES
#================================================================================================
services:
#==============================================================================================
# HERMES AGENT
#==============================================================================================
#----------------------------------------------------------------------------------------------
# TFO-HERMES - TelemetryFlow Hermes AI Agent
#----------------------------------------------------------------------------------------------
tfo-hermes:
container_name: ${CONTAINER_HERMES:-telemetryflow_hermes_agent}
image: ${IMAGE_NAME:-telemetryflow/telemetryflow-hermes}:${IMAGE_TAG:-1.2.0}
build:
context: .
dockerfile: Dockerfile
args:
VERSION: ${VERSION:-1.2.0}
GIT_COMMIT: ${GIT_COMMIT:-unknown}
GIT_BRANCH: ${GIT_BRANCH:-main}
BUILD_TIME: ${BUILD_TIME:-unknown}
restart: unless-stopped
env_file:
- path: .env
required: false
environment:
- TELEMETRYFLOW_API_KEY=${TELEMETRYFLOW_API_KEY:-}
- TELEMETRYFLOW_API_URL=${TELEMETRYFLOW_API_URL:-http://backend:3000/api/v2}
- TELEMETRYFLOW_ENVIRONMENT=${TELEMETRYFLOW_ENVIRONMENT:-production}
- TELEMETRYFLOW_ORGANIZATION_ID=${TELEMETRYFLOW_ORGANIZATION_ID:-}
- TELEMETRYFLOW_WORKSPACE_ID=${TELEMETRYFLOW_WORKSPACE_ID:-}
- TELEMETRYFLOW_DB_NAME=${TELEMETRYFLOW_DB_NAME:-telemetryflow_db}
- HERMES_MODEL=${HERMES_MODEL:-zhipu/glm-5.1}
- HERMES_INVESTIGATOR_MODEL=${HERMES_INVESTIGATOR_MODEL:-anthropic/claude-sonnet-4-5}
- HERMES_CMD=${HERMES_CMD:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- ZHIPU_API_KEY=${ZHIPU_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
- MISTRAL_API_KEY=${MISTRAL_API_KEY:-}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
- JIRA_ENABLED=${JIRA_ENABLED:-false}
- JIRA_URL=${JIRA_URL:-}
- JIRA_EMAIL=${JIRA_EMAIL:-}
- JIRA_API_TOKEN=${JIRA_API_TOKEN:-}
- JIRA_PROJECT_KEY=${JIRA_PROJECT_KEY:-OPS}
- TRELLO_ENABLED=${TRELLO_ENABLED:-false}
- TRELLO_API_KEY=${TRELLO_API_KEY:-}
- TRELLO_API_TOKEN=${TRELLO_API_TOKEN:-}
- TRELLO_BOARD_ID=${TRELLO_BOARD_ID:-}
- TRELLO_LIST_ID_INCIDENTS=${TRELLO_LIST_ID_INCIDENTS:-}
- TELEGRAM_BOT_TOKEN_TRIAGE=${TELEGRAM_BOT_TOKEN_TRIAGE:-}
- TELEGRAM_CHAT_ID_TRIAGE=${TELEGRAM_CHAT_ID_TRIAGE:-}
- TELEGRAM_BOT_TOKEN_INVESTIGATOR=${TELEGRAM_BOT_TOKEN_INVESTIGATOR:-}
- TELEGRAM_CHAT_ID_INVESTIGATOR=${TELEGRAM_CHAT_ID_INVESTIGATOR:-}
- TELEGRAM_BOT_TOKEN_REVIEWER=${TELEGRAM_BOT_TOKEN_REVIEWER:-}
- TELEGRAM_CHAT_ID_REVIEWER=${TELEGRAM_CHAT_ID_REVIEWER:-}
- TELEGRAM_BOT_TOKEN_REMEDIATOR=${TELEGRAM_BOT_TOKEN_REMEDIATOR:-}
- TELEGRAM_CHAT_ID_REMEDIATOR=${TELEGRAM_CHAT_ID_REMEDIATOR:-}
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_HERMES:-172.155.152.10}
healthcheck:
test: ["CMD", "python", "-c", "import sys; sys.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
#==============================================================================================
# INFRASTRUCTURE SERVICES
#==============================================================================================
#----------------------------------------------------------------------------------------------
# POSTGRESQL - Relational Data Storage (Config, Entities, IAM)
#----------------------------------------------------------------------------------------------
postgres:
profiles: ["core", "all"]
platform: linux/amd64
image: postgres:${POSTGRES_VERSION:-16-alpine}
container_name: ${CONTAINER_POSTGRES:-telemetryflow_hermes_postgres}
restart: unless-stopped
ports:
- "${PORT_POSTGRES:-5432}:5432"
environment:
- TZ=${TZ:-UTC}
- POSTGRES_USER=${POSTGRES_USERNAME:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-telemetryflow123}
- POSTGRES_DB=${TELEMETRYFLOW_DB_NAME:-telemetryflow_db}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ${DATA_POSTGRESQL:-${VOLUMES_BASE_PATH:-/opt/data/docker/telemetryflow-hermes}/postgresql}:/var/lib/postgresql/data
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_POSTGRES:-172.155.151.20}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USERNAME:-postgres} -d ${TELEMETRYFLOW_DB_NAME:-telemetryflow_db}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
#----------------------------------------------------------------------------------------------
# CLICKHOUSE - Time-Series & Analytics Storage (Metrics, Logs, Traces, Audit)
#----------------------------------------------------------------------------------------------
clickhouse:
profiles: ["core", "all"]
platform: linux/amd64
image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-latest}
container_name: ${CONTAINER_CLICKHOUSE:-telemetryflow_hermes_clickhouse}
restart: unless-stopped
ports:
- "${PORT_CLICKHOUSE_HTTP:-8123}:8123"
- "${PORT_CLICKHOUSE_NATIVE:-9000}:9000"
- "${PORT_CLICKHOUSE_METRICS:-9363}:9363"
environment:
- TZ=${TZ:-UTC}
- CLICKHOUSE_DB=${TELEMETRYFLOW_DB_NAME:-telemetryflow_db}
- CLICKHOUSE_USER=${CLICKHOUSE_USER:-default}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-telemetryflow123}
volumes:
- ${DATA_CLICKHOUSE:-${VOLUMES_BASE_PATH:-/opt/data/docker/telemetryflow-hermes}/clickhouse}/data:/var/lib/clickhouse
- ${DATA_CLICKHOUSE:-${VOLUMES_BASE_PATH:-/opt/data/docker/telemetryflow-hermes}/clickhouse}/logs:/var/log/clickhouse-server
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_CLICKHOUSE:-172.155.151.40}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8123/ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
#----------------------------------------------------------------------------------------------
# REDIS - Cache (L2), Session Store, BullMQ Job Queues
# DB 0: Session storage
# DB 1: L2 cache (prefix tf:cache:, TTL 1800s)
# DB 2: BullMQ queues (otlp-ingestion, domain-events, telemetry-processing, alerts, etc.)
#----------------------------------------------------------------------------------------------
redis:
profiles: ["core", "all"]
platform: linux/amd64
image: redis:${REDIS_VERSION:-7-alpine}
container_name: ${CONTAINER_REDIS:-telemetryflow_hermes_redis}
restart: unless-stopped
ports:
- "${PORT_REDIS:-6379}:6379"
command: >
redis-server
--maxmemory ${REDIS_MAX_MEMORY:-512mb}
--maxmemory-policy allkeys-lru
--appendonly yes
--appendfsync everysec
volumes:
- ${DATA_REDIS:-${VOLUMES_BASE_PATH:-/opt/data/docker/telemetryflow-hermes}/redis}:/data
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_REDIS:-172.155.151.50}
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
#----------------------------------------------------------------------------------------------
# NATS - Cross-Module Domain Event Messaging
# JetStream enabled for durable message delivery
#----------------------------------------------------------------------------------------------
nats:
profiles: ["core", "all"]
platform: linux/amd64
image: nats:${NATS_VERSION:-2-alpine}
container_name: ${CONTAINER_NATS:-telemetryflow_hermes_nats}
restart: unless-stopped
ports:
- "${PORT_NATS_CLIENT:-4222}:4222"
- "${PORT_NATS_MONITOR:-8222}:8222"
command: ["--js", "--sd", "/data", "-m", "8222"]
volumes:
- ${DATA_NATS:-${VOLUMES_BASE_PATH:-/opt/data/docker/telemetryflow-hermes}/nats}:/data
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_NATS:-172.155.151.55}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8222/healthz"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
#==============================================================================================
# APPLICATION SERVICES
#==============================================================================================
#----------------------------------------------------------------------------------------------
# BACKEND - NestJS API (Core Profile - No OTEL dependency)
#----------------------------------------------------------------------------------------------
backend:
profiles: ["core", "all"]
platform: linux/amd64
image: telemetryflow/telemetryflow-platform:${TFO_PLATFORM_VERSION:-1.4.0}
container_name: ${CONTAINER_BACKEND:-telemetryflow_hermes_backend}
restart: unless-stopped
ports:
- "${PORT_BACKEND:-3000}:3000"
environment:
- NODE_ENV=${NODE_ENV:-production}
- PORT=3000
- TZ=${TZ:-UTC}
# PostgreSQL
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=${TELEMETRYFLOW_DB_NAME:-telemetryflow_db}
- POSTGRES_USERNAME=${POSTGRES_USERNAME:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-telemetryflow123}
# ClickHouse
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=8123
- CLICKHOUSE_DB=${TELEMETRYFLOW_DB_NAME:-telemetryflow_db}
- CLICKHOUSE_USER=${CLICKHOUSE_USER:-default}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-telemetryflow123}
# Redis (Cache L2 + Session + BullMQ)
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
- REDIS_MAX_MEMORY=${REDIS_MAX_MEMORY:-512mb}
- REDIS_DB_SESSION=0
- REDIS_DB_CACHE=1
- REDIS_DB_BULLMQ=2
# NATS (Domain Events)
- NATS_URL=nats://nats:4222
# BullMQ
- ENABLE_BULLMQ=${ENABLE_BULLMQ:-true}
# JWT & Session
- JWT_SECRET=${JWT_SECRET}
- JWT_EXPIRES_IN=${JWT_EXPIRES_IN:-24h}
- SESSION_SECRET=${SESSION_SECRET}
# LLM Encryption
- LLM_ENCRYPTION_KEY=${LLM_ENCRYPTION_KEY}
# CORS
- CORS_ORIGIN=${CORS_ORIGIN:-*}
# Logging
- LOGGER_TYPE=${LOGGER_TYPE:-winston}
- LOG_LEVEL=${LOG_LEVEL:-info}
- LOG_PRETTY_PRINT=${LOG_PRETTY_PRINT:-false}
# OpenTelemetry (disabled for core profile)
- OTEL_ENABLED=false
- OTEL_SERVICE_NAME=${OTEL_SERVICE_NAME:-telemetryflow-platform}
depends_on:
postgres:
condition: service_healthy
clickhouse:
condition: service_healthy
redis:
condition: service_healthy
nats:
condition: service_healthy
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_BACKEND:-172.155.151.10}
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
#----------------------------------------------------------------------------------------------
# FRONTEND - Vue 3 SPA (Nginx)
# Serves static assets via nginx, proxies /api to backend
#----------------------------------------------------------------------------------------------
frontend:
profiles: ["core", "all"]
platform: linux/amd64
image: telemetryflow/telemetryflow-viz:${TFO_PLATFORM_VERSION:-1.4.0}
container_name: ${CONTAINER_FRONTEND:-telemetryflow_hermes_frontend}
restart: unless-stopped
ports:
- "${PORT_FRONTEND:-8080}:80"
depends_on:
backend:
condition: service_healthy
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_FRONTEND:-172.155.151.15}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:80/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
#==============================================================================================
# OBSERVABILITY SERVICES
#==============================================================================================
#----------------------------------------------------------------------------------------------
# TFO-COLLECTOR - TelemetryFlow Collector
#----------------------------------------------------------------------------------------------
# Supports dual ingestion: v1 (OTEL standard) and v2 (TelemetryFlow enhanced)
#
# OTLP HTTP Endpoints:
# TelemetryFlow Platform (Recommended - TFO Standalone):
# POST http://localhost:4318/v2/traces
# POST http://localhost:4318/v2/metrics
# POST http://localhost:4318/v2/logs
#
# OTEL Community (Backwards Compatible - OCB/Standard):
# POST http://localhost:4318/v1/traces
# POST http://localhost:4318/v1/metrics
# POST http://localhost:4318/v1/logs
#
# gRPC (Both versions via same port): localhost:4317
#----------------------------------------------------------------------------------------------
tfo-collector:
profiles: ["monitoring", "all"]
platform: linux/amd64
image: telemetryflow/telemetryflow-collector:${TFO_COLLECTOR_VERSION:-1.2.1}
command: ["--config=/etc/tfo-collector/tfo-collector.yaml"]
container_name: ${CONTAINER_OTEL:-telemetryflow_hermes_tfo_collector}
restart: unless-stopped
environment:
- TELEMETRYFLOW_ENDPOINT=http://host.docker.internal:3000
- TELEMETRYFLOW_API_KEY_ID=${TELEMETRYFLOW_API_KEY_ID}
- TELEMETRYFLOW_API_KEY_SECRET=${TELEMETRYFLOW_API_KEY_SECRET}
- TELEMETRYFLOW_COLLECTOR_ID=${CONTAINER_OTEL:-telemetryflow_hermes_tfo_collector}
- TELEMETRYFLOW_ENVIRONMENT=${TELEMETRYFLOW_ENVIRONMENT:-development}
volumes:
- ./config/tfo-collector/tfo-collector.yaml:/etc/tfo-collector/tfo-collector.yaml:ro
ports:
- "${PORT_OTEL_GRPC:-4317}:4317"
- "${PORT_OTEL_HTTP:-4318}:4318"
- "${PORT_OTEL_METRICS:-8889}:8889"
- "${PORT_OTEL_HEALTH:-13133}:13133"
- "${PORT_OTEL_ZPAGES:-55679}:55679"
- "${PORT_OTEL_PPROF:-1777}:1777"
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:13133"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_OTEL:-172.155.151.30}
#----------------------------------------------------------------------------------------------
# TFO-AGENT - TelemetryFlow Host Metrics Agent
# Collects host-level metrics (CPU, memory, disk, network) and sends heartbeats
# to the backend API. Replaces Prometheus for infrastructure monitoring.
#----------------------------------------------------------------------------------------------
tfo-agent:
profiles: ["monitoring", "all"]
platform: linux/amd64
image: telemetryflow/telemetryflow-agent:${TFO_AGENT_VERSION:-1.2.0}
container_name: ${CONTAINER_TFO_AGENT:-telemetryflow_hermes_tfo_agent}
hostname: ${TFO_AGENT_HOSTNAME:-tfo-agent}
restart: unless-stopped
ports:
- "${PORT_TFO_AGENT:-9191}:9191"
environment:
- TZ=${TZ:-UTC}
- TELEMETRYFLOW_ENDPOINT=http://host.docker.internal:3000/api/v2
- TELEMETRYFLOW_OTLP_ENDPOINT=http://tfo-collector:4318
- TELEMETRYFLOW_API_KEY_ID=${TELEMETRYFLOW_API_KEY_ID}
- TELEMETRYFLOW_API_KEY_SECRET=${TELEMETRYFLOW_API_KEY_SECRET}
- TELEMETRYFLOW_AGENT_ID=${CONTAINER_TFO_AGENT:-telemetryflow_hermes_tfo_agent}
- TELEMETRYFLOW_AGENT_NAME=TFO Hermes Agent
- TELEMETRYFLOW_ENVIRONMENT=${TELEMETRYFLOW_ENVIRONMENT:-development}
- TFO_AGENT_HEARTBEAT_INTERVAL=${TFO_AGENT_HEARTBEAT_INTERVAL:-60s}
- TFO_AGENT_METRICS_INTERVAL=${TFO_AGENT_METRICS_INTERVAL:-30s}
volumes:
- ./config/tfo-agent/tfo-agent.yaml:/etc/tfo-agent/tfo-agent.yaml:ro
- ${DATA_TFO_AGENT:-${VOLUMES_BASE_PATH:-/opt/data/docker/telemetryflow-hermes}/tfo-agent}:/data
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/log:/var/log:ro
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
tfo-collector:
condition: service_healthy
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_TFO_AGENT:-172.155.151.35}
healthcheck:
test: ["CMD-SHELL", "wget --spider -q http://localhost:13133/ || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
#==============================================================================================
# MANAGEMENT TOOLS
#==============================================================================================
#----------------------------------------------------------------------------------------------
# PORTAINER - Docker Container Management UI
#----------------------------------------------------------------------------------------------
portainer:
profiles: ["tools", "all"]
platform: linux/amd64
image: portainer/portainer-ce:${PORTAINER_VERSION:-latest}
container_name: ${CONTAINER_PORTAINER:-telemetryflow_hermes_portainer}
restart: unless-stopped
ports:
- "${PORT_PORTAINER:-9100}:9000"
- "${PORT_PORTAINER_HTTPS:-9443}:9443"
environment:
- TZ=${TZ:-UTC}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${DATA_PORTAINER:-${VOLUMES_BASE_PATH:-/opt/data/docker/telemetryflow-hermes}/portainer}:/data
networks:
telemetryflow_hermes_net:
ipv4_address: ${CONTAINER_IP_PORTAINER:-172.155.151.5}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9000/api/status"]
interval: 30s
timeout: 5s
retries: 3