version: '3.9' services: clickhouse: container_name: deepflow-clickhouse image: ${DEEPFLOW_CLICKHOUSE_IMAGE} restart: unless-stopped environment: CLICKHOUSE_DB: deepflow CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: '1' ports: - '${DEEPFLOW_CLICKHOUSE_HTTP_PORT}:8123' - '${DEEPFLOW_CLICKHOUSE_TCP_PORT}:9000' ulimits: nofile: soft: 262144 hard: 262144 volumes: - ${DEEPFLOW_CLICKHOUSE_DATA}:/var/lib/clickhouse - ${DEEPFLOW_CLICKHOUSE_CONFIG_DIR}:/etc/clickhouse-server/config.d:ro {% if deepflow_s3_enabled | bool %} minio: container_name: deepflow-minio image: ${DEEPFLOW_MINIO_IMAGE} restart: unless-stopped environment: MINIO_ROOT_USER: ${DEEPFLOW_S3_ACCESS_KEY} MINIO_ROOT_PASSWORD: ${DEEPFLOW_S3_SECRET_KEY} command: server /data --console-address ':9001' ports: - '${DEEPFLOW_MINIO_API_PORT}:9000' - '${DEEPFLOW_MINIO_CONSOLE_PORT}:9001' volumes: - ${DEEPFLOW_S3_DATA}:/data {% endif %}