refactor: Remove SensusAgent and SensusWorker services from docker-compose
- Remove sensus-agent service configuration - Remove sensus-worker service configuration - Keep only infrastructure services (Kafka, PostgreSQL, ClickHouse, etc.) - Infrastructure now focuses purely on supporting services - Applications (Agent/Worker) should be deployed separately This change makes the infrastructure more modular and allows independent deployment of applications and infrastructure. Author: Сергей Антропов Site: https://devops.org.ru
This commit is contained in:
parent
4db3e01513
commit
8f4efd607d
@ -202,65 +202,7 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
# SensusAgent
|
|
||||||
sensus-agent:
|
|
||||||
build:
|
|
||||||
context: ../SensusAgent
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: sensus/agent:latest
|
|
||||||
container_name: sensus-agent
|
|
||||||
depends_on:
|
|
||||||
kafka:
|
|
||||||
condition: service_healthy
|
|
||||||
environment:
|
|
||||||
CONFIG_PATH: /bin/agent/config.yaml
|
|
||||||
LOG_LEVEL: ${AGENT_LOG_LEVEL:-info}
|
|
||||||
KAFKA_BROKERS: kafka:29092
|
|
||||||
KAFKA_TOPIC: ${KAFKA_TOPIC:-sensus.metrics}
|
|
||||||
# SSL настройки для Kafka
|
|
||||||
KAFKA_SSL_ENABLED: ${KAFKA_SSL_ENABLED:-false}
|
|
||||||
KAFKA_SSL_KEYSTORE_PASSWORD: ${KAFKA_SSL_KEYSTORE_PASSWORD:-kafka123}
|
|
||||||
KAFKA_SSL_KEY_PASSWORD: ${KAFKA_SSL_KEY_PASSWORD:-kafka123}
|
|
||||||
KAFKA_SSL_TRUSTSTORE_PASSWORD: ${KAFKA_SSL_TRUSTSTORE_PASSWORD:-kafka123}
|
|
||||||
KAFKA_SSL_CLIENT_AUTH: ${KAFKA_SSL_CLIENT_AUTH:-none}
|
|
||||||
KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: ${KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM:-https}
|
|
||||||
volumes:
|
|
||||||
- ../SensusAgent/bin/agent:/bin/agent:ro
|
|
||||||
- ./kafka-ssl:/var/ssl/private:ro
|
|
||||||
networks:
|
|
||||||
- sensus-network
|
|
||||||
restart: unless-stopped
|
|
||||||
profiles:
|
|
||||||
- agent
|
|
||||||
|
|
||||||
# SensusWorker
|
|
||||||
sensus-worker:
|
|
||||||
build:
|
|
||||||
context: ../SensusWorker
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: sensus/worker:latest
|
|
||||||
container_name: sensus-worker
|
|
||||||
depends_on:
|
|
||||||
kafka:
|
|
||||||
condition: service_healthy
|
|
||||||
postgres:
|
|
||||||
condition: service_healthy
|
|
||||||
clickhouse-1:
|
|
||||||
condition: service_healthy
|
|
||||||
environment:
|
|
||||||
LOG_LEVEL: ${WORKER_LOG_LEVEL:-info}
|
|
||||||
KAFKA_BROKERS: kafka:29092
|
|
||||||
KAFKA_TOPIC: ${KAFKA_TOPIC:-sensus.metrics}
|
|
||||||
KAFKA_GROUP_ID: ${KAFKA_GROUP_ID:-sensus-worker}
|
|
||||||
KAFKA_CLIENT_ID: ${KAFKA_CLIENT_ID:-sensus-worker}
|
|
||||||
POSTGRES_DSN: postgres://${POSTGRES_USER:-sensus}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-sensus}?sslmode=disable
|
|
||||||
CLICKHOUSE_DSN: http://${CLICKHOUSE_USER:-sensus}:${CLICKHOUSE_PASSWORD}@clickhouse-1:8123/${CLICKHOUSE_DB:-sensus_metrics}
|
|
||||||
networks:
|
|
||||||
- sensus-network
|
|
||||||
restart: unless-stopped
|
|
||||||
profiles:
|
|
||||||
- worker
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
zookeeper-data:
|
zookeeper-data:
|
||||||
driver: local
|
driver: local
|
||||||
|
Loading…
x
Reference in New Issue
Block a user